The germ theory was developed by Louis Pasteur and Robert Koch in the 19th century . Ignaz Semmelweis showed a reduction in mortality when doctors washed their hands with chlorinated lime solutions before visiting their patients . Despite this impressive result, the discovery faced strenuous opposition from the medical establishment of the time .