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 Xinjiang
Uyghur nationalist historians such as Turghun Almas claim that Uyghurs were distinct and independent from Chinese for 6000 years, and that all non-Uyghur peoples are non-indigenous immigrants to Xinjiang. However, the Han Dynasty (206 BC – 220 AD) established military colonies (tuntian) and commanderies (duhufu) to control Xinjiang from 120 BC, while the Tang dynasty (618–907) also controlled much of Xinjiang until the An Lushan rebellion. Chinese historians refute Uyghur nationalist claims by pointing out the 2,000-year history of Han settlement in Xinjiang, documenting the history of Mongol, Kazakh, Uzbek, Manchu, Hui, Xibo indigenes in Xinjiang, and by emphasizing the relatively late "westward migration" of the Huigu (equated with "Uyghur" by the PRC government) people from Mongolia the 9th century. The name "Uyghur" was associated with a Buddhist people in the Tarim Basin in the 9th century, but completely disappeared by the 15th century, until it was revived by the Soviet Union in the 20th century.