Ancient rocks show Earth’s magnetic field followed deep heat patterns inside the planet for hundreds of millions of years.