Iron is drawn to magnets due to the effect of their magnetic fields on the metal. Iron becomes magnetized when it is exposed to a magnetic field because the atoms start to align their electrons with the magnetic field's direction. The two magnetized objects then become attracted to one another as a result of this.