An electromagnet is a type of magnet that generates a magnetic field when an electric current flows through it. It typically consists of a coil of wire wrapped around a core made of ferromagnetic material, such as iron. When electricity passes through the coil, it magnetizes the core, creating a strong magnetic field that can be turned on or off.
Electromagnets are widely used in various applications, including electric motors, transformers, and magnetic locks. Their ability to control the strength of the magnetic field makes them versatile and essential in modern technology, allowing for efficient operation in many devices.