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.
Yenisei Kyrgyz
The Kyrgyz Khagans of the Yenisei Kirghiz Khaganate claimed descent from the Chinese general Li Ling, grandson of the famous Han Dynasty general Li Guang. Li Ling was captured by the Xiongnu and defected in the first century BCE. And since the Tang royal Li family also claimed descent from Li Guang, the Kirghiz Khagan was therefore recognized as a member of the Tang Imperial family. Emperor Zhongzong of Tang had said to them that "Your nation and Ours are of the same ancestral clan (Zong). You are not like other foreigners."
In 758, the Uyghurs killed the Kirghiz Khan, and the Kirghiz came under the rule of the Uyghur Khaganate. However, the Yenisei Kyrghyz spent much of their time in a state of rebellion. In 840 they succeeded in sacking the Uyghur capital, Ordu-Baliq in Mongolia's Orkhon Valley, and driving the Uyghurs out of Mongolia entirely. On February 13 843 at "Kill the Foreigners" Mountain, the Tang Chinese inflicted a devastating defeat upon the Uyghur Qaghan's forces. But rather than replace the Uyghurs as the lords of Mongolia, the Yenisei Kirghiz continued to live in their traditional homeland and exist as they had for centuries. The defeat and collapse of the Uyghur Khaganate triggered a massive migration of Uyghurs from Mongolia into Turfan, Kumul, and Gansu where they founded the Kingdom of Qocho and Gansu Uyghur Kingdom.
When Genghis Khan came to power in the early 13th century, the Yenisei Kirghiz submitted peacefully to him and were absorbed into his Mongol Empire, putting an end to their independent state. During the time of the Mongol Empire, the territory of the Yenisei Kirghiz in northern Mongolia was turned into an agricultural colony called Kem-Kemchik. Kublai Khan, who founded the Yuan Dynasty, also sent Mongolian and Chinese officials (along with colonists) to serve as judges in the Kyrgyz and Tuva regions.