An electromagnet is an electrically induced magnet. Iron, mostly soft iron ( magnetic material ) surrounded by a coil of wire through which an electric current is passed to magnetize the core. A solenoid is a cylindrical coil of wire acting as a magnet when carrying an electric current.