Uyghurs
The history of the Uyghur people, as with the ethnic origin of the people, is a matter of contention between Uyghur nationalists and the Chinese authority. Uyghur historians viewed the Uyghurs as the original inhabitants of Xinjiang with a long history. Uyghur politician and historian Muhemmed Imin Bughra wrote in his book "A History of East Turkestan", stressing the Turkic aspects of his people, that the Turks have a 9000-year history, while historian Turghun Almas incorporated discoveries of Tarim mummies to conclude that Uyghurs have over 6400 years of history, and the World Uyghur Congress claimed a 4,000-year history in East Turkestan. However, the official Chinese view asserts that the Uyghurs in Xinjiang originated from the Tiele tribes and only became the main social and political force in Xinjiang during the ninth century when they migrated to Xinjiang from Mongolia after the collapse of the Uyghur Khaganate, replacing the Han Chinese they claimed were there since the Han Dynasty. Many contemporary Western scholars, however, do not consider the modern Uyghurs to be of direct linear descent from the old Uyghur Khaganate of Mongolia. Rather, they consider them to be descendants of a number of peoples, one of them the ancient Uyghurs.
Turpan
The Uyghurs established a Kingdom in the Turpan region with its capital in Gaochang or Kara-Khoja. The kingdom was known as the Uyghuria Idikut state or Kara-Khoja Kingdom that lasted from 856 to 1389 AD. The Uyghurs were Manichaean but later converted to Buddhism and funded the construction the cave temples in the Bezeklik Caves. The Uyghurs formed an alliance with the rulers of Dunhuang. The Uyghur state later became a vassal state of the Kara-Khitans, and then as a vassal of the Mongol Empire. This Kingdom was led by the Idikuts, or Saint Spiritual Rulers. The last Idikut left Turpan area in 1284 for Kumul, and then Gansu to seek protection of Yuan Dynasty, but local Uyghur Buddhist rulers still held power until the invasion by the Moghul Khizr Khoja in 1389. The conversion of the local Buddhist population to Islam was completed nevertheless only in the second half of the 15th century.