Xinjiang
Mongol period

After Genghis Khan unified Mongolia and began his advance west the Uyghur state in the Turpan-Urumchi region offered its allegiance to the Mongols in 1209, contributing taxes and troops to the Mongol imperial effort. In return, the Uyghur rulers retained control of their kingdom; Genghis Khan's Mongol Empire conquered the Qara Khitai in 1218. Xinjiang was a stronghold of Ögedei Khan and later came under the control of his descendant, Kaidu. This branch of the Mongol family kept the Yuan dynasty at bay until their rule ended.

During the Mongol Empire era the Yuan dynasty vied with the Chagatai Khanate for rule of the region and the latter controlled most of it. After the Chagatai Khanate divided into smaller khanates during the mid-14th century, the politically-fractured region was ruled by a number of Persianized Mongol Khans, including those from Moghulistan (with the assistance of local Dughlat emirs), Uigurstan (later Turpan) and Kashgaria. These leaders warred with each other and the Timurids of Transoxiana to the west and the Oirats to the east: the successor Chagatai regime based in Mongolia and China. During the 17th century, the Dzungars established an empire over much of the region.

The Mongolian Dzungars were the collective identity of several Oirat tribes which formed and maintained, one of the last nomadic empires. The Dzungar Khanate covered Dzungaria, extending from the western Great Wall of China to present-day Eastern Kazakhstan and from present-day Northern Kyrgyzstan to Southern Siberia. Most of the region was renamed "Xinjiang" by the Chinese after the fall of the Dzungar Empire, which existed from the early 17th to the mid-18th century.

The sedentary Turkic Muslims of the Tarim Basin were originally ruled by the Chagatai Khanate and the nomadic Buddhist Oirat Mongols in Dzungaria ruled the Dzungar Khanate. The Naqshbandi Sufi Khojas, descendants of Muhammad, had replaced the Chagatayid Khans as rulers of the Tarim Basin during the early 17th century. There was a struggle between two Khoja factions: the Afaqi (White Mountain) and the Ishaqi (Black Mountain). The Ishaqi defeated the Afaqi and the Afaq Khoja invited the 5th Dalai Lama (the leader of the Tibetans) to intervene on his behalf in 1677. The Dalai Lama then called on his Dzungar Buddhist followers in the Dzungar Khanate to act on the invitation. The Dzungar Khanate conquered the Tarim Basin in 1680, setting up the Afaqi Khoja as their puppet ruler. After converting to Islam, the descendants of the previously- Buddhist Uyghurs in Turfan believed that the "infidel Kalmuks" (Dzungars) built Buddhist monuments in their region.
change_case:capital_word_frequency[8], language:response_language[German]