Under the Mongolian Yuan dynasty, a superintendent of foreign trade was established in the city in 1277, along with those at Shanghai, Ningbo, and Guangzhou. The former Song superintendent Pu Shougeng, an Arab or Persian Muslim, was retained for the new post, using his contacts to restore the city's trade under its new rulers. He was broadly successful, restoring much of the port's former greatness, and his office became hereditary in his descendants. Into the 1280s, Quanzhou sometimes served as the provincial capital for Fujian. Its population was around 455,000 in 1283, the major items of trade being pepper and other spices, gemstones, pearls, and porcelain. Marco Polo recorded that the Yuan emperors derived "a vast revenue" from their 10% duty on the port's commerce; he called Quanzhou's port "one of the two greatest havens in the world for commerce" and "the Alexandria of the East". Ibn Battuta simply called it the greatest port in the world. Polo noted its tattoo artists were famed throughout Southeast Asia. It was the point of departure for Marco Polo's 1292 return expedition, escorting the 17-year-old Mongolian princess Kököchin to her fiancé in the Persian Ilkhanate; a few decades later, it was the point of arrival and departure for Ibn Battuta. Kublai Khan's invasions of Japan and Java sailed primarily from its port. The Islamic geographer Abulfeda noted, in , that its city walls remained ruined from its conquest by the Mongols. In the mid-1320s, Friar Odoric noted the town's two Franciscan friaries, but admitted the Buddhist monasteries were much larger, with over 3000 monks in one.