A vaccine contains a dead or inactive (an therefore harmless) form of a pathogen. By injecting this into the body, an immune response is triggered and white blood cells produce antibodies specific to the antigens on the pathogen. This way, when an active form of the pathogen enters the body, the white blood cells can quickly produce the specific antibodies and destroy the pathogen.