Overseas trade in the Song was run through offices of the state. Zhu Yu's Pingzhou Table Talks (Pingzhou ketan), Volume 2, says that the old rule of the Guangzhou Maritime Trade Office put it under the regional commander and the transport commissioner together, and that "in the early Chongning years, each of the three circuits set up an Intendant of Maritime Trade"; a ship arriving in port had to pay the tithe, "taking ten parts as the rate, with one part taken from fine goods such as pearls and dragon-brain camphor". The same volume describes ships going to sea: "The pilots knew the lie of the land: by night they watched the stars, by day the sun, and in overcast weather they looked at the south-pointing needle, or took a ten-zhang rope with a hook to bring up mud from the sea floor and smell it, and so knew where they were." The needle was one of several methods in the pilots' hands, and was used in overcast weather. The summary on the opening page of the book says that Zhu Yu's father, Zhu Fu, "later became commander at Guangzhou" and that the book mostly relates his father's experience; the page does not say in which year this entry was recorded. Liang Xun, for his part, writes that the compass "was applied to ancient seafaring in the 11th century".
Xu Jing's Illustrated Account of an Embassy to Goryeo in the Xuanhe Era (Xuanhe fengshi Gaoli tujing), Volume 34, records an official embassy. It says that in the fourth Xuanhe year (renyin) an edict sent Lu Yundi and Fu Moqing as chief and deputy envoys of the state mission to Goryeo, that in "the fifth year, guimao" the ships were made ready, and that the "spirit ship" left Mingzhou (the fifth Xuanhe year being 1123); in length, breadth, height, equipment and crew it was "three times" the merchant ships. At Banyang Rock: "That night the ship could not lie at anchor in the open sea; it advanced by watching the Dipper and the stars, and when it was dark and overcast it used the floating south-pointing needle, to fix north and south." Where stars could be seen, they watched the stars; the floating needle came into use in overcast darkness, an order consistent with Zhu Yu's account. That is to say, with the needle a ship could keep its bearing even on days when no sky was visible.
Shen Kuo's Brush Talks from Dream Brook (Mengxi bitan), Volume 24, describes the method in more detail: "Those versed in the art rub a needle point on lodestone, and it will then point south, but it usually inclines slightly east and does not point fully south"; a needle set on a fingernail or the rim of a bowl "turns especially fast", but "it is smooth and slips off easily, and suspending it by a thread is best of all". The way is to take a single silk strand from a fresh cocoon, fix it to the waist of the needle with a mustard-seed's worth of wax, and hang it where there is no wind, and "the needle will always point south". As to why a lodestone points south, he admits that "its principle cannot be traced". The deflection had been noticed while the reason still could not be given; the page gives no year.
That the needle changed from a spare method into something on which lives depended can be seen in merchants' accounts. Menglianglu (A Record of the Millet Dream), Volume 12, describes the ships of sea merchants going out from Zhejiang: "In storm and darkness they go only by the needle-dial, which the huochang (the officer in charge of it) holds, not daring to err by a hair, for the lives of the whole ship depend on it"; sailing out from Quanzhou, "all depends on the south needle, and the slightest error means being buried in the bellies of fish". Seafarers turned this dependence into a saying; the first part of Xingcha shenglan (Overall Survey of the Star Raft) says of the Kunlun sea: "The saying goes: 'Upward fear the Seven Isles, downward fear Kunlun; if the needle strays, helmsman and ship are lost.'" Its author Fei Xin says in his preface that he "joined four voyages", under the chief envoy, the eunuch Zheng He, and others.
In the early Ming this skill went to sea with a fleet that the court sent across the Western Ocean. The History of the Ming (Ming shi) records that in the sixth month of the third Yongle year (1405), Zheng He and Wang Jinghong and others were ordered to "make embassies to the Western Ocean", with "officers and men to the number of 27,800 and more", and "built great ships, 62 of them, 44 zhang long and 18 zhang wide"; Zheng He "served as envoy seven times in all", and the places he visited came to "more than thirty countries". The Star Raft survey opens with the voyage of the seventh Yongle year (jichou, a year that began in 1409 in the Gregorian calendar), which "used 48 sea-going ships"; they sailed from Liujiagang at Taicang in the ninth month, autumn, put out to sea from the Wuhu Gate in Fujian in the twelfth month, which is near the end of that year, and "with a fair wind reached Champa in ten days and nights".
The surviving Zheng He's Navigation Chart is found in Mao Yuanyi's Wubei zhi (Treatise on Armament Technology) of 1621. Liang Xun says it was drawn in the period after Zheng He's sixth voyage, when he was guarding Nanjing (1425 to 1430); the chart has more than 530 place names and 14 sea routes and more than 100 notes of outward and return compass bearings, written in the form "from such a place, which compass point, how many watches' sailing to such a place". Four star-sighting charts for crossing the ocean are attached, in which a star board was used to measure the altitude of the Pole Star and so fix latitude; he thinks this "shows that Zheng He's fleet had by then maturely combined astronomy and the compass in navigation". He also cites the "Chart of Crossing to the Ryukyus" in Xiao Chongye's Record of an Embassy to the Ryukyus of the seventh Wanli year (1579), whose compass notes are equally specific: "At Meihuatou, with a due south wind, from Dongsha Shan take the single-chen needle for six watches".
Seafaring knowledge also became manuals. The preface to Shunfeng xiangsong (Fair Winds for Escort) says that sailing "rests wholly on the twenty-four points of the earth compass, applied flexibly", and that "the proper course depends wholly on the method of the Duke of Zhou and on the Luojing zhenbu (Compass Needle Register)"; the preface also mentions "in the first Yongle year, sent to the Western Ocean and other countries to read out the edict, repeatedly correcting compass routes and star-sighting diagrams" (the book's date of composition is not stated on the page). The book teaches how to measure a ship's speed: throw a piece of firewood from the bow and walk with it to the stern, and "each stage counts as sixty li". The book's "Prayer for Setting the Needle on the Earth Compass" invokes "the successive imperially made patriarchs of the south-pointing art, the Yellow Emperor, the sage Duke of Zhou", and also "the Celestial Consort, Manifest and Illustrious, Protector of the State and Shelterer of the People, Wondrously Responsive". It says: "when taking water to set the needle, one must use yang water, not yin water", and "in mounting the compass and setting the needle, begin from the Qian palace". On board, the compass was an instrument and also something to be honoured.
Seen in other entries: Liang Xun says Zheng He's chart "inherited and developed the Maritime Silk Road opened since the Han", so for the trade routes treated in the entry on Silk Road, the sea stretch relied on compass bearings; the tithe at Guangzhou and the trade of merchants sailing out of Quanzhou are the sea-going stretch of the commerce treated in the entry on Merchant Guild Commerce; the Hydrographic Guide Map "gathers data on the routes by which grain went from south to north over a thousand years", and so the sea route and the inland waterway treated in the entry on Grand Canal were both roads for grain going north; star-sighting measures the altitude of the Pole Star, an observation of the same kind as the astronomical observation treated in the entry on Armillary Spheres.
On an overcast night the pilot looked down at a needle floating on water. Zhu Yu records it as one method among several, Xu Jing records that it was used when the stars could not be seen, in the Menglianglu it is held by the officer in charge and carries the lives of a whole ship, and Zheng He's Navigation Chart writes it into more than a hundred notes of compass bearings. The needle cannot lead the way by itself: it works together with the stars, the mud brought up from the sea floor and the count of watches, and with the generations who wrote their bearings into books and charts.
Compass Navigation is the class in the chapter on Sciences on the use of the artificially magnetized compass in ocean sailing. In overcast weather a ship cannot see the sky and steers by the compass needle, and in the Ming the fleets of Zheng He sailed far into the Western Ocean along needle routes.