Well, they all work a bit differently. But, the basic way is that we inject you with a denatured version of the viral or bacterial agents which causes the disease. Just a small amount, and this allows your body to create anti-bodies to fight them, if you ever come in contact with said agents.