Alexander Fleming accidentally discovered penicillin in 1928 while studying antibacterial agents. He found that mold was preventing bacteria from growing on one of his culture plates. Upon further study, he determined the mold was penicillium notatum and had antibacterial properties. This discovery of penicillin proved to be life-saving for many patients.