The study of the Earth's magnetic field and its relationship to the rocks and sediments that have been magnetized over time.