Earth's magnetic field is unstable. Not only does it vary in intensity, but from time to time it flips, with the poles reversing sign. Much of this behaviour remains a mystery, but a combination of geomagnetic observations with theoretical studies has been providing enlightenment.