When lava cools, iron-rich minerals inside it lock in the direction of Earth’s magnetic field at that moment — a fossil compass. Read enough of these frozen compasses and you can constrain its past latitude and orientation; magnetism alone does not determine its ancient longitude.