History of the Uyghur people
The history of the Uyghur people, as with the ethnic origin of the people, is an issue 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 Turgun 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. Chinese historians however generally traced the origin of the Uyghurs to the Tiele, some to the Dingling as well as other people mentioned in ancient Chinese texts such as the Guifang. Official Chinese view asserts the Uyghurs to be of Tiele origin, 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 that they claimed were there since the Han Dynasty. Many modern Western scholars however do not consider the modern Uyghurs to be of direct linear descent from the old Uyghur Khaganate of Mongolia, rather they are descendants of a number of people, of which the ancient Uyghurs are but one.
History of Kyrgyzstan
The Yenisei Kirghiz lived in the upper Yenisey River valley, central Siberia. Chinese sources of the 2nd century BCE and Muslim sources of the 7th–12th centuries CE describe the Kyrgyz as red-haired with fair complexion and green (blue) eyes. First appearing in Chinese "Records of the Grand Historian" as Gekun or Jiankun (鬲昆 or 隔昆), and later as part of the Tiele tribes, they came under the rule of the Göktürks and Uyghurs. Later Kyrgyzstan it was part of the Kushan empire during Buddhism.
The early Kyrgyz state reached its greatest expansion after defeating the Uyghur Khaganate in 840 CE. Then Kyrgyz quickly moved as far as the Tian Shan range and maintained their dominance over this territory for about 200 years. In the 12th century, however, the Kyrgyz domination had shrunk to the Altay Range and the Sayan Mountains as a result of the rising Mongol expansion. With the rise of the Mongol Empire in the 13th century, the Kyrgyz migrated south. Plano Carpin, an envoy of the Papal states, and William Rubruck, an envoy of France, all wrote about their life under the Mongols. Various Turkic peoples ruled them until 1685, when they came under the control of the Oirats (Dzungars).