An electromagnet is a temporary magnet formed when an electric current flows through a coil wrapped around a soft iron core. The magnetic field disappears when the current is switched off.
Uses of electromagnets:
1. Used in electric bells and relays.
2. Used in MRI machines in hospitals.