This and other observations of acquired immunity were later exploited by Louis Pasteur in his development of vaccination and his proposed germ theory of disease.
Who came up with germ theory?
Louis Pasteur