A compass aligns itself with the Earth's magnetic field. The needle points to the magnetic north pole, helping you determine the cardinal directions and navigate accordingly.