History of the Uyghur people

The history of the Uyghur people extends over more than two millennia and can be divided into four distinct phases: Pre-Imperial (300 BC – AD 630), Imperial (AD 630–840), Idiqut (AD 840–1200), and Mongol (AD 1209–1600), with perhaps a fifth modern phase running from the death of the Silk Road in AD 1600 until the present.

In brief, Uyghur history is the story of a small nomadic tribe from the Altai Mountains competing with rival powers in Central Asia, including other Altaic tribes, Indo-European empires from the south and west, and Sino-Tibetan empires to the east. After the collapse of the Uyghur Khaganate in AD 840, ancient Uyghurs resettled from Mongolia to the Tarim Basin and northern parts of China. Ultimately, the Uyghurs became civil servants administering the Mongol Empire.

Contested history
The history of the Uyghur people, including their ethnic origin, is an issue of contention between Uyghur nationalists and Chinese authorities. Uyghur historians view Uyghurs as the original inhabitants of Xinjiang, with a long history. Uyghur politician and historian Muhammad Amin Bughra wrote in his book A history of East Turkestan, stressing the Turkic aspects of his people, that the Turks have a 9,000-year history, while historian Turgun Almas incorporated discoveries of Tarim mummies to conclude that Uyghurs have over 6,400 years of history. The World Uyghur Congress has claimed a 4,000-year history. However, the official Chinese view, as documented in the white paper History and Development of Xinjiang, asserts that the Uyghurs in Xinjiang formed after the collapse of the Uyghur Khaganate in ninth-century Mongolia, from the fusion of many different indigenous peoples of the Tarim Basin and the westward-migrating Old Uyghurs. The modern Uyghur language is not descended from Old Uyghur; rather, it is a descendant of the Karluk languages spoken by the Kara-Khanid Khanate. After the fall of the Uyghur Khaganate, most Uyghurs settled in the Tarim Basin, while smaller numbers settled in other parts of northern China, where they became known as the "Yellow Uyghurs" or Yugurs, and Salar people. During the Islamic Turkification of Xinjiang, the Kara-khanids, under Sultan Satuq Bughra Khan, drove the Uyghurs out of Xinjiang. The name "Uyghur" reappeared after the Soviet Union took the 9th-century ethnonym from the Uyghur Khaganate, then reapplied it to all non-nomadic Turkic Muslims of Xinjiang. Many modern Western scholars, however, do not consider modern Uyghurs to be of direct linear descent from the old Uyghur Khaganate of Mongolia; rather they believe them to be descendants of a number of peoples, of which the ancient Uyghurs are but one.

Some Uyghur nationalists claim that they are descended from the Tocharians. Well-preserved Tarim mummies of a people with European physical traits indicate the migration of an Indo-European people into the Tarim area at the beginning of the Bronze Age, around 2,000 BCE. These people probably spoke Tocharian and have been suggested by some to be the Yuezhi mentioned in ancient Chinese texts, who later founded the Kushan Empire. Qurban Wäli claims ancient words, written in Sogdian or Kharosthi scripts, to be "Uyghur" instead of Sogdian words absorbed into Uyghur, as proposed by more scrupulous linguists. Later migrations brought peoples from the west and northwest to the Xinjiang area, probably speakers of various Iranian languages, such as the Saka tribes. Other ancient people in the region mentioned in ancient Chinese texts include the Xiongnu, who fought for supremacy in the region against the Chinese for several hundred years. Some Uyghur nationalists claim descent from the Xiongnu (as well as being related to the White Huns); however, this view is contested by modern Chinese scholars. This Xiongnu claim originates from various Chinese historical texts: for example, according to the Chinese historical book Weishu, the founder of the Uyghurs was descended from a Xiongnu ruler.

Pre-Imperial


Many historians trace the ancestry of modern Uyghur people to the Altaic pastoralists called Tiele, who lived in the valleys south of Lake Baikal and around the Yenisei River. The Tiele first appear in history in AD 357, under the Chinese ethnonym Gaoche, referring to the ox-drawn carts with distinctive high wheels used for yurt transportation. Tiele tribal territories had previously been occupied by the Dingling, an ancient Siberian people once subjugated by the Xiongnu, some of whom would be absorbed into the Tiele following the Xiongnu Empire's collapse. The Tiele practiced some agriculture and were highly developed metalsmiths due to the abundance of easily available iron ore in the Yenisei River. According to Duan Linaqin, the Dingling served as vassal metalsmiths to the Xiongnu, then later to the Rouran and Hepthalite states.

The Book of Sui lists about forty Tiele tribes scattered throughout North and Central Asia, one being 韋紇 Weihe (< MC *ɦʷɨi- ɦet), a transcription of underlying *Uyγur:

The ancestors of the Tiele were the descend[a]nts of the Xiongnu. There were many clans among the Tiele, who were compactly distributed along the valley from the east of the Western Sea. Although there were so many different names of the clans, they were all called Tiele as a whole. There was no ruler among them, and they belonged to the Eastern and Western Türks, separately. They lived in unsettled places, and moved along with the water and grass. They were good at shooting on horseback, and were fierce and cruel, especially greedy. They live on plundering. The clans close to the west do several kinds of cultivating, and breed more cattle and sheep than horses. Since the establishment of the Türk state, the Tiele help the Türks by participating in battles everywhere, and subdue all the groups in the North.
 * 1) In the North of the Tola [Duluo 獨洛] river, there were Boqut (Pugu, 僕骨, MC buk-kuot), Toŋra (Tongluo, 同羅, MC duŋ-lɑ), Uyγur (Weihe, 韋紇, MC ɦʷɨi- ɦet), Bayirqu (Bayegu, 拔也古, MC bʷɑt-jja-kuo) and Fuluo (覆羅, MC phək-lɑ), whose leaders were all called Irkin (Sijin, 俟斤, MC ɖʐɨ-kɨn) by themselves. And there were other clans such as Mengchen (蒙陳, MC muŋ-ɖin), Turuhe (吐如紇, MC thuo-ɲjɷ-ɦet), Siqit (Sijie, 斯結, MC sie-ket), Qun (Hun, 渾, MC ɦuon) and Huxue (斛薛, MC ɦuk-siɛt). These clans had a powerful army of almost 20,000 men.
 * 2) In the west of Hami (Yiwu) [伊吾], North of Karashahr (Yanqi), and close to Aqtagh (Bai [White] Mountain), there were Qibi (契弊, CE khet-biɛi), Boluozhi (薄落職, CE bɑk-lɑk-tɕɨk), Yidie (乙咥, CE ʔˠit-tet), Supo (蘇婆, CE suo-bʷɑ), Nahe (那曷, CE nɑ-ɦɑt), Wuhuan (烏讙, CE ʔuo-hʷjɐn), Hegu (紇骨, CE ɦet-kuot), Yedie (也咥, CE jja-tet), Yunihuan (於尼讙, CE ʔuo-ɳi-hʷjɐn) and so on. These clans had powerful army of almost 20 thousands men.
 * 3) In the Southwest of Altai Mountain (Jin Mountain), there were Xueyantuo (薛延陀, CE siɛt-jiɛn-dɑ), Dieleer (咥勒兒, CE tet-lək-ɲie), Shipan (十槃, CE ʥip-bʷan), Daqi (達契, CE thɑt-khet) and so on, which have army of more than 10,000 men.
 * 4) In the north of Samarkand, close to Ade river, there were Hedie (訶咥, CE hɑ-tet), Hejie (曷嶻, CE ɦɑt-dzɑt), Bohu (撥忽, CE pʷɑt-huot), Bigan (比干, CE pi-kɑn), Juhai (具海, CE gju-həi), Hebixi (曷比悉, CE ɦɑt-pi-sit), Hecuosu (何嵯蘇, CE ɦɑ-ʣɑ-suo), Bayewei (拔也未, CE bʷɑt-jja-mʷɨi), Keda (渴達, CE khɑt-thɑt) and so on, which have an army of more than 30,000 men.
 * 5) In the east and west of Deyihai (得嶷海), there were Sulujie (蘇路羯, CE suoluo-kjɐt), Sansuoyan (三索咽, CE sɑm-sɑk-ʔet), Miecu (蔑促, CE met-tshjuok), Longhu (隆忽, CE ljuŋ-huot) and so on, more than 8,000 men.
 * 6) In the east of Fulin (拂菻), there were Enqu (恩屈, CE ʔən-kjut), Alan (阿蘭,CE ʔɑ-lɑn), Beirujiuli (北褥九離, CE pək-nuok-kɨu-lei), Fuwenhun (伏嗢昬, CE bɨu-ʔʷˠɛt-huon) and so on, almost 20,000 men.
 * 7) In the South of Northern Sea, there were Dubo (都波, CE tuo-pʷɑ) and so forth.

[...]

Their customs were mostly like those of the Türks. The differences were that the husband should stay in his wife's family, and could not go home until the birth of his children. Also, the dead were to be buried. In the third year of Daye (607), the Tiele sent an envoy and tribute to the court, and never stopped contact from that year.

In AD 546, the Fufulo led the Tiele tribes in a struggle against the Türk tribe in the power vacuum left by the breakup of the Rouran state. As a result of this defeat, the Tiele were forced into servitude again. This incident marked the beginning of the historic Türk-Tiele animosity that plagued both Göktürk Khanates. (Note: at this time, Tiele replaces Gaoche in Chinese history.) At some point during their subjugation, nine Tiele tribes formed a coalition called Tokuz-Oguzes Nine-Tribes, which included the leading tribe, the Uyghurs, and eight allied tribes: Bugu, Hun, Bayegu, Tongluo, Sijie, Qibi, Abusi, and Gulunwugu(si)

In AD 600, Sui China allied with Erkin Tegin, leader of the Uyghur tribe, against the Göktürk Empire, their common enemy. In AD 603, the alliance dissolved in the aftermath of Tardu Khan's defeat, but three tribes came under Uyghur control: Bugu, Tongra, and Bayirqu.

In AD 611, the Uyghur, allied with Xueyantuo, defeated a Göktürk invasion; however, in AD 615, they were placed under Göktürk control again by Shipi Qaghan. In AD 627, the Uyghur, now led by Pusa, again in alliance with the Xueyantuo, participated in another Tokuz-Oguz revolt against the Göktürks. After defeating the Göktürk prince Yukuk Shad, Pusa assumed the title 活頡利發 guo-xielifa < *kat-elteber. In AD 630, the Göktürk Khanate was decisively defeated by Emperor Tang Taizong. However, in AD 646, when the Uyghur leader Tumitu Ilteber (吐迷度) was granted the Chinese title of prefect, a legal precedent for Uyghur rule was established. The Chinese crushed the Xueyantuo in 646 and appointed Uyghur leader as Anbei Protector (安北都護) over the Mongolian steppe.

From AD 648–657, the Uyghurs, under Porun Ilteber (婆闰), worked as mercenaries for the Chinese in their annexation of the Tarim Basin. In AD 683, the Uyghur leader Dujiezhi was defeated by Göktürks and the Uyghur tribe moved to the Selenga River valley. From this base, they struggled against the Second Göktürk Empire.

By AD 688, the Uyghurs were controlled again by the Göktürks. After a series of revolts coordinated with their Chinese allies, the Uyghurs emerged as the leaders of the Tokuz-Oguz and Tiele once again. In AD 744, the Uyghurs, with their Basmyl and Qarluq allies, under the command of Qutlugh Bilge Köl, with Chinese general Wang Zhongsi (王忠嗣), defeated the Göktürks. The following year, they founded the Uyghur Khaganate at Mount Ötüken. Control of Mt. Ötüken had been, since the Göktürks, a symbol of authority over the Mongolian steppe.

Uyghur Khaganate (AD 744–840)


The Uyghur Khaganate lasted from AD 744 to 840. It was administered from the imperial capital Ordu-Baliq, one of the biggest ancient cities in modern-day Mongolia. When founded by Yaoluoge Yibiaobi, the Khaganate neighboured the Shiwei in the east and the Altai Mountains in the west, and also included the Gobi desert within its southern border, thus controlling the entire territory of the ancient Xiongnu; at its greatest extent, the Khaganate reached as far west as Ferghana.

Large numbers of Sogdian refugees came to Ordu-Baliq to escape the Islamic conquest of their homeland. They converted the Uyghur nobility from Buddhism to Manichaeism. Thus, the Uyghurs inherited the legacy of Sogdian culture. Sogdians ran the civil administration of the empire. They were helpful in outflanking the Chinese diplomatic policies that had destabilized the Göktürk Khaganate. Peter B. Golden writes that the Uyghurs not only adopted the writing system and religious faiths of the Indo-European Sogdians, such as Manichaeism, Buddhism, and Christianity, but also looked to the Sogdians as "mentors", while gradually replacing them in their roles as Silk Road traders and purveyors of culture. Indeed, Sogdians wearing silk robes are seen in the praṇidhi scenes of the Uyghur Bezeklik murals, particularly Scene 6 from Temple 9 showing Sogdian donors to the Buddha.

In AD 840, following a famine and civil war, the Uyghur Khaganate was overrun by an alliance of Tang-dynasty China and the Kirghiz, another Turkic people. As a result, the majority of tribal groups formerly under Uyghur control migrated to what is now northwestern China, especially to the Turfan basin of the modern Xinjiang Uyghur Autonomous region. The Yenisei Kyrgyz Khaganate of the Are family bolstered his ties and alliance to the Tang dynasty imperial family against the Uyghur Khaganate by claiming descent from the Han-dynasty Han Chinese general Li Ling, who had defected to the Xiongnu and married a Xiongnu princess, daughter of Qiedihou Chanyu, and was sent to govern the Jiankun (Ch'ien-K'un) region, which later became Yenisei. Li Ling was a grandson of Li Guang (Li Kuang) of the Longxi Li family, descended from Laozi, which the Tang dynasty Li Imperial family claimed descent from. The Yenisei Kyrgyz and Tang dynasty launched a victorious successful war between 840 and 848 to destroy the Uyghur Khaganate in Mongolia and its centre at the Orkhon valley, using their claimed familial ties as justification for an alliance. Tang-dynasty Chinese forces under General Shi Xiong wounded the Uyghur Khagan (Qaghan) Ögä, seized livestock, took 5,000–20,000 Uyghur Khaganate soldiers captive, and killed 10,0000 Uyghur Khaganate sources on 13 February 843 at the battle of Shahu mountain.

Several laws enforcing racial segregation of foreigners from Chinese were passed by the Han Chinese during the Tang dynasty. In 779, the Tang dynasty issued an edict that forced Uyghurs in the capital to wear their ethnic dress, stopped them from marrying Chinese females, and banned them from pretending to be Chinese. One of the reasons why the Chinese disliked Uyghurs was that they practiced usury.

Uyghur kingdoms
Following the collapse of the Uyghur Khaganate, the Uyghur gave up Mongolia and dispersed into present-day Gansu and Xinjiang. In 843, Chinese forces watched over Uyghur remnants located in Shanxi province during a rebellion, until reinforcements arrived. The Uyghur later founded two kingdoms:

Ganzhou Uyghur Kingdom, the easternmost state formed by the Yugur people (AD 870–1036), with its capital near present-day Zhangye in the Gansu province of China. There, the Uyghur converted from Manichaeism to Tibetan and Mongol Buddhism. Unlike Turkic peoples further west, they did not later convert to Islam. Their descendants are now known as Yugurs (or Yogir, Yugur, and Sary Uyghurs, literally meaning "yellow Uyghurs") and are distinct from modern Uyghurs. In AD 1028–1036, the Yugurs were defeated in a bloody war and forcibly absorbed into the Tangut kingdom. These Yugurs remained Buddhist and did not convert to Islam.

Kingdom of Qocho, created during AD 856–866, is also called the "Idiqut" ("Holy Wealth, Glory") state and was based around the cities of Qocho (winter capital) near Turpan, Beshbalik (summer capital), Kumul, and Kucha. A Buddhist state, with state-sponsored Buddhism and Manichaeism, it can be considered the center of Uyghur culture. The Uyghurs sponsored the construction of many of the temple caves in nearby Bezeklik. They abandoned the old alphabet and adopted the scripts of the local population, which later came to be known as the Uyghur script. The Idiquts (title of the Karakhoja rulers) ruled independently until they become a vassal state of the Kara-Khitans. In 1209, the Kara-Khoja ruler Idiqut Barchuq declared his allegiance to the Mongols under Genghis Khan and the kingdom existed as a vassal state until 1335. After they submitted to the Mongols, the Uyghurs went into the service of the Mongol rulers as bureaucrats, providing the expertise that the initially illiterate nomads lacked. The Uyghurs of the Kingdom of Qocho were allowed significant autonomy by the Mongols, but their nation was finally destroyed by the Chaghataid Mongols in the late 14th century.

Polities claimed to be Uyghur
Modern Uyghurs claim that the reign of a Kara-Khanid Khanate is a significant part of Uyghur culture and history. Kara-Khanids, or the Karakhans (Black Khans) dynasty, was a state formed by a confederation of Karluks, Chigils, Yaghmas, and other Turkic tribes. Some historians have argued that the Karakhanids were linked to the Uyghurs of Uyghur Khaganate through the Yaghmas, a people associated with the Toquz Oghuz, although other historians disagree with this theory. The Karakhanid Sultan Satuq Bughra Khan (920–956 AD) converted to Islam in 934, and a mass conversion of the Karakhanids followed in 960. The first capital of the Karakhanids was established in the city of Balasagun in the Chu River Valley and later moved to Kashgar.

During the Kara-Khanid period, mosques, schools, bridges, and caravansarais were constructed in the cities. Kashgar, Bukhara, and Samarkand became centers of learning, and Turkic literature developed. Among the most important works of the period is Kutadgu Bilig ("The Knowledge That Gives Happiness"), written by Yusuf Balasaghuni between the years 1060 and 1070, and Dīwān Lughāt al-Turk ("Compendium of the languages of the Turks") by Mahmud al-Kashgari, who actually distinguished the Islamic Karakhanids, whom he called "Khâqâni Turks" or just "Turks", from the Buddhist Uyghurs in Qocho, whom he sometimes called "Uyghur infidel[s]" and considered enemies. The tazkirahs of later periods, such as the Tazkirah of the Four Sacrificed Imams, that tells the story of the early Karakhanids, helped forge the identity of the settled Turkic Altishahr people, who would become the modern Uyghurs.

After the rise of the Seljuk Turks in Iran, the Karakhanids became their vassals. The Karakhanid states later submitted and served the suzerainty of the Kara-Khitans, who defeated the Seljuks in the Battle of Qatwan. The Karakhanid states finally ended when they were divided up between the Khwarezmids and Kuchlug, an usurper of the Kara-Khitan's throne.

Most Uyghur inhabitants of the Besh Balik and Turpan regions did not convert to Islam until the 15th-century expansion of the Yarkand Khanate, a Turko-Mongol successor state based in western Tarim. Before converting to Islam, Uyghurs were Tengriist, Manichaeans, Buddhists, or Nestorian Christians.

Mongol period 1210–1760
The Uighur Idiqut, Barchukh, voluntarily submitted to Genghis Khan (r.1206–1227) and was given his daughter, Altani (ᠠᠯᠲᠠᠨ) in 1209. From the 1260s onwards, they were directly controlled by the Yuan dynasty of the Great Khagan Kublai (r.1260–1294). Starting from the 1270s, the Mongol princes Qaidu and Duwa from Central Asia repeatedly launched raids into Uighurstan to take control from the Yuan. Most of the Uighurs, including the ruling dynasty, fled to Gansu, which was then under the Yuan dynasty. The Uighur troops served the Mongol war machine in Central Asia, China, and the Middle East. Because they were one of the many highly developed nations under the Mongols, the Uighurs held high positions at the Mongol court. Tata-tunga was the first scribe of Genghis Khan and mastermind behind the Uighur-Mongolian script that the Mongols used. The founder of the Eretna (1335–1381) in Anatolia was a Uighur commander of the Ilkhanate.

The Chagatai Khanate was a Mongol ruling khanate controlled by Chagatai Khan, second son of Genghis Khan. Chagatai's ulus, or hereditary territory, consisted of the part of the Mongol Empire that extended from the Ili River (today in eastern Kazakhstan) and Kashgaria (in the western Tarim Basin) to Transoxiana (modern Uzbekistan and Turkmenistan). The exact date that the control of Turfan and other areas of Uighurstan was transferred to another Mongol dynasty, Chagatai Khanate, is unclear. Many scholars claim Chagatai Khan (d.1241) inherited Uighurstan from his father, Genghis Khan, as appanage, in the early 13th century. By the 1330s, the Chagatayids exercised full authority over the Uighur Kingdom in Turfan.

After the death of the Chagatayid ruler Qazan Khan in 1346, the Chagatai Khanate was divided into western (Transoxiana) and eastern (Moghulistan/Uyghuristan) halves, which was later known as "Kashgar and Uyghurstan", according to Balkh historian Makhmud ibn Vali (Sea of Mysteries, 1640). By 1348, the Mogul (Mongol in Persian) khan, Tughlug Timur, had converted, along with his 160,000 subjects. A small Mongol dynasty, Qara Del, was founded in Hami, where the Uighurs also lived in 1389.

Mogulistan
Kashgar historian Muhammad Imin Sadr Kashgari recorded Uyghurstan in his book Traces of Invasion (Asar al-futuh) in 1780. Power in the western half devolved into the hands of several tribal leaders, most notably the Qara'unas. Khans appointed by the tribal rulers were mere puppets. In the east, Tughlugh Timur (1347–1363), an obscure Chaghataite adventurer, gained ascendancy over the nomadic Mongols and converted to Islam. In 1360 and again in 1361, he invaded the western half in the hope of reunifying the khanate. At their greatest extent, the Chaghataite domains extended from the Irtysh River in Siberia down to Ghazni in Afghanistan, and from Transoxiana to the Tarim Basin.

Tughlugh Timur was unable to completely subjugate the tribal rulers. After his death in 1363, the Moghuls left Transoxiana, and the Qara'unas' leader Amir Husayn took control of Transoxiana. Tīmur-e Lang (Timur the Lame), or Tamerlane, a Muslim native of Transoxiana who claimed descent from Genghis Khan, desired control of the khanate for himself and opposed Amir Husayn. He took Samarkand in 1366 and was recognized as emir in 1370, although he continued to officially act in the name of the Chagatai khans. For over three decades, Timur used the Chagatai lands as the base for extensive conquests, conquering the rulers of Herat in Afghanistan, Shiraz in Persia, Baghdad in Iraq, Delhi in India, and Damascus in Syria. After defeating the Ottoman Turks at Angora, Timur died in 1405 while marching on Ming-dynasty China. The Timurid dynasty continued under his son, Shah Rukh, who ruled from Herat until his death in 1447.

By 1369, the western half (Transoxiana and further west) of the Chagatai Khanate had been conquered by Tamerlane in his attempt to reconstruct the Mongol Empire. The eastern half, mostly under what is now Xinjiang, remained under Chagatai princes that were at time allied or at war with Timurid princes. Until the 17th century, all the remaining Chagatai domains fell under the theocratic regime of Uyghur Apak Khoja and his descendants, the Khojijans, who ruled Altishahr in the Tarim Basin.

Both the Tarim Basin as well as Transoxiana (in modern-day Uzbekistan and Tajikistan) became known as Moghulistan or Mughalistan, after the ruling class of Chagatay and Timurid states descended from the "Moghol" tribe of Doghlat. They were Islamicized and Turkified in language. This Moghol Timurid ruling class established the Timurid rule on the Indian Subcontinent known as the Mughal Empire.

In the eastern portion of the Chagatai Khanate, known as the Eastern Chagatai Khanate to Chinese historians and as Moghulistan to Russian historians, the culture of the Karakhanids dominated the largely Muslim state, and the Buddhist populations of the former Karakhoja Idikut-ate largely converted to the Muslim faith. All Chagatai-speaking Muslims, regardless of whether they lived in Turpan or Kashgar, became known by their occupations as Moghols (ruling class), Sarts (merchants and townspeople), and Taranchis (farmers). This triple division of classes among the same Muslim Turkic folk also existed in Transoxiana, regardless of whether they were under Timurid or Chagatay rule.

The Eastern Chagatai Khanate was marked by instability and internecine warfare, with Kashgar, Yarkant, and Qomul as major centers. Some Chagatay princes allied with the Timurids and Uzbeks of Transoxiana, and some sought help from the Buddhist Kalmyks. The Chagatay prince Mirza Haidar Kurgan escaped his war-torn homeland of Kashgar in the early 16th century to Timurid Tashkent, only to be evicted by the invading Shaybanids. Escaping to the protection of his Mughal Timurid cousins, then rulers of Delhi, he gained his final post as governor of Kashmir and wrote the famous Tarikh-i-Rashidi, widely acclaimed as the most comprehensive work on the Uyghur civilization during the East Turkestani Chagatay reign.

The Khojijans were originally the Aq Tagh tariqa of the Naqshbandi order, which originated in Timurid Transoxiana. Struggles between two prominent Naqshbandi tariqas, the Aq Taghlik and the Kara Taghlik, engulfed the Eastern Chagatai domain in the late 17th century. Apaq Khoja triumphed both as a national religious and political leader. The last ruling Chagatay princess married one of the ruling Khojijan princes (descendants of Apaq) and became known as Khanum Pasha. She ruled brutally after the death of her husband and singlehandedly slaughtered many of her Khojijan and Chagatayid rivals. She was known to have boiled alive the last Chagatayid princess who could have continued the dynasty. The Khojijan dynasty fell into chaos, despite the brutality of Khanum Pasha.

During the Ming Turpan Border Wars, the Chinese Ming dynasty defeated invasions by the Uyghur Kingdom of Turpan.

The Zhengde Emperor of the Ming dynasty had a homosexual relationship with a Uyghur Muslim leader from Hami. His name was Sayyid Husain and he served as Muslim overseer in Hami during the Ming Turpan Border Wars. In addition to having relationships with men, the Zhengde Emperor also had relationships with women. He sought the daughters of many of his officials. The other Muslim in his court, a Central Asian called Yu Yung, sent Uighur women dancers to the emperor's quarters for sexual purposes. The emperor favored non-Chinese women, such as Mongols and Uighurs.

The Zhengde Emperor was noted for having a Uighur woman as one of his favorite concubines. Her last name was Ma, and she was reportedly trained in military and musical arts, archery, horse riding, and singing music from Turkestan.

The invasion of the Manchu-led Qing dynasty over the Jungars brought Qing military governorship to the Ili Valley north of Tarim basin. Khojijan princes struggled against Qing rule until the Qing dynasty was overthrown by the Xinhai Revolution.

Occupation and control by the Qing dynasty 1760s–1860s
The Qing dynasty conquered Moghulistan in the 18th century. It invaded Dzungaria in 1759 and dominated it until 1864. The territory was renamed Xinjiang soon after the Qing began their domination of the Dzungar people. "Historians estimate that a million people were slaughtered and the land so devastated that it took a generation for it to recover".

A widespread slave trade in Xinjiang began to take place. The Uyghurs were administered by a system of begs under the control of Manchu military officials.

The Han Hui (currently known as Hui Chinese) and Han Chinese had to wear the queue to demonstrate loyalty to the dynasty, but Turkic Muslims like the Chanto Hui (Uyghur) and Sala Hui (Salars) were not obligated to follow this custom. After the invasion of Kashgar by Jahangir Khoja, Turkistani Muslim begs and officials in Xinjiang eagerly fought for the "privilege" of wearing a queue to show their steadfast loyalty to the Empire. High-ranking begs were granted this right. The eagerness of Turki begs to voluntarily wear the queue contrasted with the Han and Hui, who were forced to wear it.

The Chinese did not distinguish between the Turki Uyghurs and the Central Asian invaders under Jahangir, killing Turks who tried to bribe Chinese citizens and sought refuge with them. Many Chinese and Chinese Muslims (Dungan) had been killed by Jahangir, so they were eager for revenge.

The Uyghur Muslim Sayyid and Naqshbandi Sufi rebel of the Afaqi suborder, Jahangir Khoja, was sliced to death in 1828 by the Manchus for leading a rebellion against the Qing.

Yettishar
During the Dungan revolts of 1864, initiated by Hui Muslims, the Turkic Muslims rose in rebellion in several cities, including Kashgar, Yarkand, Hotan, Aksu, Kucha, and Turpan. The Khoqandi under Yaqub Beg then established the Yettishar state in the region in 1865 and gained recognition from the Ottoman Empire in 1873. The rule of Yaqub Beg was disliked by local Kashgaria and his Turkic Muslim subjects due to strict rule, heavy taxes, and declining trade.

Uyghur Muslim forces under Yaqub Beg declared a Jihad against Chinese Muslims under Tuo Ming (T'o Ming) during the Dungan revolt. The Uyghurs thought that the Chinese Muslims were Shafi`i, and since the Uyghurs were Hanafi, they should wage war against them. Yaqub Beg enlisted non-Muslim Han Chinese militia under Xu Xuehong (Hsu Hsuehkung) in order to fight against the Chinese Muslims. T'o Ming's forces were defeated by Yaqub in the Battle of Urumqi in 1870. Yaqub intended to seize all Dungan territory. At Kuldja, some Taranchi Turkic Muslims massacred Chinese Muslims, forcing them to flee into Ili.

In the late 1870s, the Qing decided to reconquer Xinjiang, under the leadership of General Zuo Zongtang. As Zuo Zongtang moved into Xinjiang to crush the Muslim rebels under Yaqub Beg, he was joined by Dungan Khufiyya Sufi General Ma Anliang and his forces, which were composed entirely of Muslim Dungan people. Ma Anliang and his Dungan troops fought alongside Zuo Zongtang to attack the Muslim rebel forces.

On 18 December 1877, the army of the Qing entered Kashgar, bringing the state to an end.

Qing reconquest
After this invasion, East Turkestan was renamed "Xinjiang", or "Sinkiang", which itself means "New Dominion" or "New Territory", but should really be known as "Old Territory Newly Returned" (旧疆新归) and was shortened to "Xinjiang" (新疆) in Chinese, by the Qing empire on 18 November 1884.

Meanwhile, the "Great Game" between Russia and Britain was underway in Central Asia, with former ethnic cultures from Afghanistan through Tajikistan and Uzbekistan to Uyghurstan being divided. Artificial lines drawn between Shiite speakers of Eastern Persian and Tajik and Sunni Chagatai speakers within the same Uzbek cultural sphere gave rise to the modern Tajik and Uzbek nationalities, whereas the rather similar Sart-Taranchi populations around Kashgar (Xinjiang) and Andijan (Uzbekistan) divided into Uyghur and Uzbeks, Turpan, Hami, Korla, Kashgar, Yarkant, Yengihissar, Hotan, and Yining, through the Tarim Basin and the edges of Xinjiang, were categorized as Uyghur.

Throughout the Qing dynasty, the sedentary Uyghur inhabitants of the oases around the Tarim, speaking Qarluq/Old Uyghur-Chagatay dialects, were largely known as Taranchi and Sart, ruled by the Moghuls of Khojijan. Other parts of the Islamic World still knew this area as Moghulistan, or as the eastern part of Turkestan.

Republican era 1910–1949
The Uyghur identified themselves to each other by their oasis, as 'Keriyanese', 'Khotanese', or 'Kashgari'. The Soviets met with the Uyghur in 1921 during a meeting of Turkic leaders in Tashkent. This meeting established the Revolutionary Uyghur Union (Inqilawi Uyghur Itipaqi), a communist nationalist organization that opened underground sections in principal cities of Kashgaria and was active until 1926, when the Soviets recognized the post-Qing Sinkiang Government and concluded trade agreements with it.

By 1920, Uyghur nationalism had become a challenge to Chinese warlord Yang Zengxin (杨增新), who controlled Siankiang. Turpan poet Abdulhaliq, having spent his early years in Semipalatinsk (modern Semey) and the Jadid intellectual centres in Uzbekistan, returned to Sinkiang with a pen name that he later styled as a surname: "Uyghur". He wrote the nationalist poem Oyghan, which opened with the line "Ey pekir Uyghur, oyghan!" (Hey poor Uyghur, wake up!) He was later martyred by the Chinese warlord Sheng Shicai in Turpan in March 1933 for inciting Uyghur nationalist sentiments through his works.

There were several Uyghur factions during Yang's rule in Xinjiang, which did not intermarry and were fierce rivals. The Qarataghlik Uyghurs were content to live under Chinese rule, while the Agtachlik Uyghurs were hostile to Chinese rule.

Uyghur independence activists staged several uprisings against post-Qing and Sheng-Kuomintang rule. Twice, in 1933 and 1944, the Uyghurs successfully regained their independence (backed by Soviet leader Joseph Stalin): the First East Turkestan Republic was a short-lived attempt at independence of land around Kashghar, and it was destroyed by the Chinese Muslim army under generals Ma Zhancang and Ma Fuyuan at the Battle of Kashgar (1934). The Uyghurs had revolted with the Kirghiz, who were another Turkic people. The Kirghiz were angry at the Chinese Muslims for crushing their Kirghiz Rebellion, so they and the Uyghurs in Kashgar targeted Chinese Muslims, along with Han Chinese, during their revolt.

The Second East Turkistan Republic existed from 1944 to 1949 in what is now Ili Kazakh Autonomous Prefecture. The Ili Rebellion was fought by the Kuomintang against the Second East Turkestan Republic, the Soviet Union, and the Mongolian People's Republic.

1949–present


In 1949, after the Chinese Nationalists (Kuomintang) lost the civil war in China, the Second East Turkestan Republic's rulers refused to form a confederate relation within Mao Zedong's People's Republic of China; however, a plane crash killed many of the East Turkestan Republic's delegation. The surviving leader, Saifuddin Azizi, joined the Chinese Communist Party and professed loyalty to the PRC. Soon afterward, General Wang Zhen marched on East Turkestan through the deserts, suppressing anti-invasion uprisings. Mao turned the Second East Turkistan Republic into the Ili Kazakh Autonomous Prefecture and appointed Azizi as the region's first Communist Party governor. Many Republican loyalists fled into exile in Turkey and Western countries.

The name Xinjiang was changed to Xinjiang Uyghur Autonomous Region. Uyghurs are mostly concentrated in southwestern Xinjiang.

In 2004, Uyghurs and other Turkic peoples in exile established the East Turkistan Government in Exile, claiming that China occupied East Turkistan.

A committee of independent experts with ties to the United Nations claimed to have credible reports that China holds millions of Uyghurs in secret camps, and many international media reports have said that as many as one million people are being held in Xinjiang internment camps.

On 24 October 2018, the BBC released details of an extensive investigation into China's "hidden camps" and the extent to which the People's Republic goes to maintain so-called "correct thought".