When magma (molten rock containing minerals and gases) cools to form solid volcanic rock, the alignment of the magnetite grains is &quot;locked in,&quot; recording the Earth's magnetic orientation or polarity (normal or reversed) at the time of cooling.
(molten rock; containing; minerals and gases)
molten rock
containing
minerals and gases