An electromagnet is a type of magnet that is created when electricity flows through a coil of wire. This coil is often wrapped around a core made of a magnetic material, like iron. When the electric current is turned on, the coil generates a magnetic field, making the core act like a magnet. This allows electromagnets to be turned on and off, which is useful in many applications.
Electromagnets are commonly used in devices such as electric motors, magnetic locks, and cranes for lifting heavy metal objects. Their ability to control magnetism with electricity makes them versatile and essential in modern technology.