Rocks preserve magnetic patterns that reflect magnetic fields that are different from today. Today’s magnetic field resembles a bar magnet which is nearly but not exactly parallel to the N and S rotational pole. The constant motion of the molten core, together with earth’s rotation, maintains the field.