compass works by using a small magnetic needle that aligns itself with Earth's magnetic field, pointing toward the magnetic north pole. This simple yet reliable tool has been used for centuries in navigation, helping explorers, sailors, and hikers determine their direction. Modern compasses are also integrated into GPS devices for improved accuracy.