Vaccines contain harmless forms of pathogens that help to train your immune cells to recognize and fight them.