The study of the history of Earth's magnetic field and the recording of its past orientations in rocks.