Before germ theory's establishment, dominant explanations for disease included miasma theory — the belief that 'bad air' from decaying organic matter caused illness — and the much older humoral theory inherited from ancient Greek medicine, which attributed disease to imbalances among four bodily fluids. These weren't fringe beliefs; they were the serious, institutionally dominant medical consensus well into the nineteenth century, shaping public health interventions (miasma theory, for instance, did correctly motivate some useful sanitation improvements, even while misunderstanding the actual mechanism) and clinical practice alike.
The shift toward germ theory developed through a series of interconnected findings across the mid-to-late nineteenth century. Louis Pasteur's research into wine and beer spoilage in the 1850s and 60s demonstrated that fermentation and spoilage were caused by living microorganisms rather than spontaneous chemical processes, directly challenging the still-influential idea of spontaneous generation. Ignaz Semmelweis's 1840s observations in a Vienna maternity ward — showing that doctors washing their hands with a chlorinated solution before examining patients dramatically reduced fatal childbed fever — provided an early, initially dismissed clinical demonstration of the same underlying principle. Robert Koch's work in the 1870s and 80s, including his identification of the specific bacteria causing anthrax, tuberculosis, and cholera, along with his formalization of rigorous criteria (Koch's postulates) for proving a specific microorganism caused a specific disease, gave germ theory its decisive, broadly accepted scientific foundation by the 1880s and 90s.