 In the 6th century, the First Turkic Khaganate was established.In the 7th-8th century Tang, Turks and Tibetans warred for control, and the Tang dynasty established the Anxi Protectorate of Xinjiang and Central Asia.This was followed by the Uyghur Khaganate in the 8th-9th century.