The shibosi was the specialized office managing China's overseas trade. The Northern Song first established one at Guangzhou in 971 (Kaibao 4), followed by Hangzhou, Mingzhou, Quanzhou and Mizhou. Its functions included issuing "public certificates" (licences to put to sea), the levy and pre-emption of goods (a proportional tax in kind plus low-price compulsory purchase), attracting foreign merchants, receiving envoys and supervising the foreign quarter. Imports were chiefly spices, drugs, ivory and rhinoceros horn; exports mainly silk and porcelain. In the early Southern Song the office's annual revenue approached two million strings of cash, a fiscal pillar, and Quanzhou was praised by Marco Polo as a great port alongside Alexandria. In the early Ming Zheng He's voyages brought official tribute trade to its height, while the sea ban and the tribute system compressed private trade, and after the Longqing opening Yuegang took over. The shibosi system inherited a thousand years of the Maritime Silk Road and prefigured the Qing customs houses: a hinge in the history of China's maritime trade.