Vaccines typically provide the immune system with harmless copies of an antigen: a portion of the surface of a bacterium or virus that the immune system recognizes as "foreign." A vaccine may also provide a non-active version of a toxin — a poison produced by a bacterium — so that the body can create a defense against it.