xkcd2

Earth Layers

The Earth's magnetic field is primarily generated by currents in the liquid outer core, though some geophysicists argue that an unexplained mismatch with models suggests that the Kinder toy contains a magnet.