A vaccine is a type of medicine that trains the body’s immune system so that it can fight a disease it has not come into contact with before. Vaccines are designed to prevent disease, rather than treat a disease once you have caught it. Vaccines train the immune system to detect and combat disease-causing pathogens. To understand how vaccines work, people will need to know how the immune system works.