Louis Pasteur conducted experiments in the 19th century using swan-necked flasks filled with broth. He demonstrated that when the broth was exposed to the air, microbial growth occurred, but when the flask remained sealed, no growth occurred. This experiment conclusively showed that microorganisms did not spontaneously generate but instead came from external sources.