Uyghurs
Rian Thum explored the concepts of identity among the ancestors of the modern Uyghurs in Altishahr (the native Uyghur name for eastern Turkestan or southern Xinjiang) before the adoption of the name "Uyghur" in the 1930s, referring to them by the name "Altishahri" in his article "Modular History: Identity Maintenance before Uyghur Nationalism". Thum indicated that Altishahri Turkis did have a sense that they were a distinctive group separate from the Turkic Andijanis to their west, the nomadic Turkic Kirghiz, the nomadic Mongol Qalmaq, and the Han Chinese Khitay before they became known as Uyghurs. There was no single name used by them to refer to themselves, the various native names Altishahris used to refer to themselves were Altishahrlik (Altishahr person), yerlik (local), Turki, and Musulmān (Muslim), the term Musulmān in this situation did not signify religious connotations, because the Altishahris would exclude other Muslim peoples like the Kirghiz when referring to themselves as Musulmān. Dr. Laura J Newby has also noted that the sedentary Altishahri Turkic people felt themselves as a separate group from other Turkic Muslims since at least the 19th century.
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).