When vaccine is given small amounts of the dead or inactive pathogen are inserted in to the blood, this activates the body's white blood cells which then produce antibodies. These antibodies destroy the dead or inactive pathogen and by doing so ensures that if the pathogen enters the body again it will be eliminated very quickly.