An electromagnet is a type of magnet created by passing an electric current through a coil of wire. The magnetic field generated by the flowing current induces magnetism in nearby ferrous materials.
Unlike permanent magnets, electromagnets can be turned on or off by controlling the electric current.
They find widespread use in various applications, such as electric motors, transformers, and magnetic locks, due to their ability to generate strong magnetic fields with precise control.