A soft iron core is placed inside a solenoid to make an electromagnet. When a soft iron core is placed inside a solenoid, then the strength of the magnetic field becomes very large because the iron core gets magnetized by induction. This combination of a solenoid and a soft iron core is called an electromagnet.