Earth's magnetic poles flip in a process called a geomagnetic reversal. The planet's magnetic field is generated by chaotic flows of molten metal deep inside Earth's core.