Answer
Danish physicist Hans Christian Ørsted discovered the relationship between electricity and magnetism in 1820, pioneering the field of electromagnetism. He conducted groundbreaking experiments demonstrating how an electric current can deflect a compass needle, establishing a crucial connection between these two fundamental forces of nature. Ørsted's groundbreaking work laid the groundwork for future advancements in electrical engineering and the development of various electrical devices and technologies.