Vaccines contain weakened or inactive parts of a particular germ that triggers an immune response within the body, When you get a vaccine, your immune system kicks into action. It recognises the invading germ and starts producing antibodies to fight it. Afterwards, if you ever come in contact with the same germ, your body's immune system quickly remembers how to destroy it.