A marine gyrocompass works by using the principles of gyroscopic motion to maintain a stable reference to true north. Unlike a traditional magnetic compass, which relies on the Earth’s magnetic field, the gyrocompass is unaffected by magnetic interference. The system consists of a spinning rotor that maintains a fixed orientation in space due to the Earth’s rotation. This rotor is housed within a gimbal and is connected to sensors that detect the alignment with the Earth’s axis. By continuously adjusting the compass heading based on this stable reference, the gyrocompass provides accurate and reliable navigation data.