Vaccines contain weakened or inactive pieces of germs that train your immune system to create antibodies. These antibodies can remember how to fight that germ in the future without you getting sick.