Ancient societies used moulds to treat infections, and in the following centuries many people observed the inhibition of bacterial growth by moulds. While working at St Marys Hospital in London in 1928, Scottish physician Alexander Fleming was the first to experimentally determine that a Penicillium mould secretes an antibacterial substance, which he named "penicillin". The mould was found to be a variant of Penicillium notatum (now called Penicillium rubens), a contaminant of a bacterial culture in his laboratory. The work on penicillin at St Marys ended in 1929.
In 1939, a team of scientists at the Sir William Dunn School of Pathology at the University of Oxford, led by Howard Florey that included Edward Abraham, Ernst Chain, Norman Heatley and Margaret Jennings, began researching penicillin. They developed a method for cultivating the mould, and extracting, purifying and storing penicillin from it.  They created an assay for measuring its purity. They carried out experiments with animals to determine penicillin's safety and effectiveness before conducting clinical trials and field tests. They derived its chemical formula and determined how it works. The private sector and the United States Department of Agriculture located and produced new strains and developed mass production techniques. Penicillin became an important part of the Allied war effort in the Second World War, saving the lives of thousands of soldiers. Fleming, Florey and Chain shared the 1945 Nobel Prize in Physiology or Medicine for its discovery and development.