The discovery of penicillin by Alexander Fleming revolutionized medicine by providing an effective treatment for bacterial infections.