An electromagnet is a type of magnet in which the magnetic field is produced by an electric current. The field disappears when the current is turned off. Typically, it consists of a wire wound into a coil. The strength of the magnetic field is proportional to the current and the number of turns in the coil. This principle was discovered by Hans Christian Ørsted.





