The magnetic field created by the fridge magnet aligns the spins of unpaired electrons in metal atoms in the fridge in such a way that the magnet and the fridge door are attracted to each other; this force keeps the magnet stuck to the fridge.read more