As lava cools, tiny iron-rich crystals line up with Earth's magnetic field. These crystals are magnetite crystals. Anywhere lavas have cooled, these magnetite crystals point to the magnetic poles. The little magnets point to where the North Pole was when the lava cooled.