An inactive or weak form of the pathogen is introduced to the patient. This stimulates the production of lymphocytes which then produce antibodies against the antigen. Memory cells are also generated. If the active pathogen enters the patient's body, they will be able to quickly produce antibodies to fight the infection.