Iron is a ferromagnetic material. This means its atoms have tiny magnetic fields that are normally randomly oriented. This random orientation cancels out any overall magnetic field.
How iron becomes a magnet:
* External magnetic field: When you place a piece of iron in a strong external magnetic field (like from a permanent magnet), the tiny magnetic fields within the iron atoms align themselves with the external field. This alignment creates a net magnetic field in the iron, making it a temporary magnet.
* Heating and cooling: Heating iron to a high temperature and then cooling it in a strong magnetic field can "lock in" the alignment of the magnetic domains, making it a permanent magnet.
* Magnetization by hammering: Repeatedly hammering a piece of iron in the presence of a magnetic field can also create a permanent magnet.
In summary:
Iron only behaves as a magnet when the tiny magnetic fields within its atoms are aligned in a specific direction. This alignment can be temporary or permanent depending on how the iron is exposed to a magnetic field.