A compass uses a magnet that points north according to the Earth's natural magnetic field.
In many compasses, the indicator is a magnetic needle mounted on a
spindle that allows it to swing freely, while in others there may be
multiple magnets and a liquid base to dampen oscillations.