The Uyghur Khaganate was founded in Ötüken after the fall of the Gök-Türk state and was the most powerful Turkic state in Central Asia for about a century. The Uyghurs, who led the Toquz Oghuz (Nine Oghuz) tribal union, brought Gök-Türk rule to an end together with the Karluks and the Basmils, and founded their own khaganate in 745. The first khagan, Kutlug Bilge Kül Kagan, made the city of Ordubalık on the Orkhon river his capital.

Under his son Moyunchur (Bayanchur) Kagan (747-759) the state was consolidated, with campaigns against the Kyrgyz, the Karluks and the Basmils. The events of this period are known from Uyghur inscriptions such as the Shine-usu inscription. During the An Lushan rebellion in China the Uyghurs helped the Tang dynasty and gained great political and economic advantages; the horse-for-silk trade with China became one of the khaganate's main sources of revenue.

Under Bögü Kagan (759-779) the Manichaean religion spread among the Uyghurs and was adopted as the state religion. In this period the Uyghurs founded cities and moved towards a settled way of life, and with the Uyghur script, developed from the Sogdian alphabet, they created a rich written culture. They reached an advanced level in architecture, literature and the arts.

In 840 the Kyrgyz of the Yenisei region attacked the khaganate, already weakened by internal strife and famine, took Ordubalık and killed the khagan. With their state in Ötüken destroyed, the Uyghurs migrated south and west, founding new Uyghur states in Kan-chou (Gansu) and in East Turkestan (Turfan, Beshbalik) and opening the second period of their history.

The following pages of this section deal in turn with the founding of the Uyghur Khaganate, the Battle of Talas, Uyghur-Chinese relations, the establishment of Manichaeism, the fall of the state and the later Uyghur states.