A compass works like a tiny magicmagnet. The Earth has its own big magnet inside it, and the needle on the compass is also a magnet, but it's free to spin. When you point it in any direction, the compass needle moves until it lines up with the Earth’s magnetic field, which always points north.