National High Magnetic Field Laboratory
Magnet Academy: Magnetic Domains
In ferromagnetic materials, smaller groups of atoms band together into areas called domains, in which all the electrons have the same magnetic orientation. That's why you can magnetize them. See how it works in this Java tutorial.