Earth's magnetic field and compasses
The earth is one gigantic magnet.
MN = Magnetic north
MS = Magnetic south
The earth acts like a giant magnet. Its invisible magnetism helps animals such as birds, bats, sharks and mice find their way around.
A compass contains a small bar magnet that can rotate. When a compass is held at rest in your hand, the needle always settles in the north-south direction.
The needle in red points towards the magnetic north of the earth.
LIKE POLES REPEL
So how come the compass needle which shows north directs you to the magnetic north?
That's because the magnetic north of the earth is actually a south pole: the scientific convention is to call it magnetic north (when it really isn't).