When new seafloor is created by upwelling magma at the mid-ocean ridges, the magnetic minerals orient themselves to the magnetic orientation of Earth at the time of their solidification in the rock matrix. Thus, the history of magnetic reversals are recorded in the rock.