An electromagnet is a type of magnet that is created when an electric current flows through a coil of wire. This coil is usually wrapped around a core made of a magnetic material, like iron. When electricity passes through the wire, it generates a magnetic field, turning the core into a magnet. The strength of the electromagnet can be increased by adding more coils or increasing the electric current.
Electromagnets are widely used in various applications, such as in electric motors, magnetic locks, and MRI machines. Unlike permanent magnets, electromagnets can be turned on and off, making them very versatile for different uses in technology and industry.