The magnetic compass was a major advance in navigation because it allowed mariners to identify their direction even when clouds hid astronomical indications like the North Star.
It employs a freely rotating magnetic needle that constantly points to the north pole of the Earth.