Step 1: Start with an unmagnetized iron nail.
* An unmagnetized iron nail has no magnetic domains, so its magnetic field is zero.
Step 2: Place the nail inside a solenoid.
* A solenoid is a coil of wire that creates a magnetic field when an electric current flows through it.
* When the electric current flows through the solenoid, it creates a magnetic field that aligns the magnetic domains in the iron nail.
Step 3: Turn off the electric current.
* When the electric current is turned off, the magnetic field created by the solenoid disappears.
* However, the magnetic domains in the iron nail remain aligned, so the nail is now magnetized.