Answer
Immunity through vaccination was demonstrated by Jenner's discovery. He observed that milkmaids who had been exposed to cowpox, a mild disease, were immune to smallpox, a deadly disease. This led him to hypothesize that exposure to a weakened form of a disease could protect against the disease itself. He tested this hypothesis by deliberately infecting a boy with cowpox and then exposing him to smallpox.