Answer:
it is Paleomagnetism.
Many rocks record the strength and direction of the earth's magnetic field at the time the rocks formed. Small magnetite crystals in a cooling lava flow act like tiny compass needles, preserving a record of the earth's magnetic field when the lava solidifies.