take charge over the Chinese campaigns in 1253. Since Sakya Pandita had already died Kublai took 'Phags-pa into his camp as a symbol of Tibet's surrender. Kublai was elected Khagan in 1260 following the death of his brother Möngke, although his ascendance was not uncontested. At that point he named 'Phags-pa as "State Preceptor" (Guoshi). In 1265 'Phags-pa returned to Tibet and for the first time made an attempt to impose Sakya hegemony with the appointment of Sakya Bzang-po (a long time servant and ally of the Sakyas) as the dpon-chen ('great administrator') over Tibet in 1267. A census was conducted in 1268 and Tibet was divided into 13 myriarchies. In 1269 'Phags-pa returned to Kublai's side at his new capital Khanbaliq (modern day Beijing). He presented Kublai Khan with a new script (the 'Phags-pa script) designed to represent all of the languages of the empire. The next year he was named Imperial Preceptor (Dishi) of the Yuan dynasty, and his position as titular ruler of Tibet (now in the form of its 13 myriarchies) was reconfirmed, while the Mongols managed a structural and administrative rule over the region. The Yuan-Sakya hegemony over Tibet continued into the middle of the 14th century, although it was challenged by a revolt of the 'Bri-khung sect with the assistance of Hülegü of the Ilkhanate in 1285. The revolt was suppressed in 1290 when the Sakyas and eastern Mongols burned 'Bri-khung and killed 10,000 people (cf. Wylie 1977). Relations with the Ming dynasty Modern historians still debate on the exact relationship the Chinese Ming dynasty (1368–1644) had with Tibet. Modern Chinese sources assert that the Ming dynasty had full sovereignty over Tibet, while scholars outside China generally assert that Tibet was simply an independent tributary and that the Ming merely had nominal suzerainty over Tibet by granting some lamas honorific titles. Tibet under the Qing dynasty The armies of the Qing dynasty first entered Tibet in response to a request for help when Tibet was invaded by the Dzungar Mongols in 1717. After the defeat of a first expeditionary force in the Battle of the Salween River in 1718 the Chinese expedition in 1720 was successful in restoring the Dalai Lama to power in Lhasa. Troops were withdrawn in 1723 leaving a civilian Chinese adviser in Lhasa. When civil war broke out in 1728 there were appeals from both sides for help from China