The short answer
The invention most often credited with helping Chinese sailors find direction is the magnetic compass. It uses a magnetized needle that turns to line up roughly with Earth’s magnetic field. Once the needle was used at sea, it gave sailors a reference for holding a heading, something the sun and stars could not always provide.
How the early compass worked at sea
A magnetized needle was mounted so it could swing freely, often on a pivot or floating on water. Once it settled, the needle indicated a magnetic direction. Sailors used it to hold a course when the sun and stars were hidden by cloud, and at night when landmarks could not be seen.
The compass was not used alone. It was combined with observations of the sky, coastal landmarks and the sailor’s own experience of the route.
When was the compass invented?
The earliest Chinese references to magnetic direction-finding come from around the first century CE. They describe lodestone spoons, which were used for divination rather than navigation.
Needle compasses for direction are described later. Shen Kuo’s Dream Pool Essays, written in 1088, describe magnetized needles and note that they often point slightly east of true north. By the 12th century, Chinese writers describe the compass being used on ships.
Why the magnetic compass is important
It is easy to see why the magnetic compass is important for sea travel. It gave a direction reference that worked in fog, at night and under heavy cloud, when the sun and stars were not visible. It was also small and portable, and it did not depend on the weather in the way that star observations did.
Declination in navigation
A compass needle points to magnetic north, not to true, or geographic, north. The difference between the two, called declination in navigation or variation, changes from place to place and can change over time. Shen Kuo’s note about needles pointing slightly east of true north is an early record of this effect.
Later navigators had to correct for declination when they worked out a course. Charts and tables were developed to help with this.
How the compass spread beyond China
Over the following centuries the compass spread along trade routes across the Indian Ocean and into the Mediterranean and Europe. Each region adapted the design and the methods for using it. The result was a tool that supported longer voyages and more reliable bearings, though it was still only one part of a sailor’s skill.
Where to read more
For a wider timeline of the instruments that came before and after the compass, see the history of navigation tools.