Let a rod of soft iron is demagnetised by a suitable method. When a number of turns of insulated copper wire is wrapped closely in the form of cylinder over this iron rod and a high current is passed through the insulated copper wire (this arrangement is called solenoid), a strong magnetic field is produced inside the solenoid. The magnetic field produced will magnetise the iron rod placed inside the solenoid and the magnet so formed is called an electromagnet.