William Sturgeon invented the electromagnet in 1824 by wrapping a painted horseshoe-shaped iron piece with bare copper wire. He demonstrated its power by using it to lift other iron scraps. In 1830, American scientist Joseph Henry created a more sophisticated electromagnet and helped popularize the device.