After the establishment of the post-Turkic regime, it ruled Uighur again. In the middle of the 8th century, after the demise of Turkic Uighur, a powerful Uighur khanate was established. In the third year of Tianbao (744), the Tang Dynasty conferred the title of Huihe as Huairen Khan, which was called "Guli Peiluo". During the Anshi Rebellion, Uighur sent troops to help Tang Ping rebel many times. Because the Uighur army pointed directly at john young (now southwest of Beijing), the rebels had to withdraw the frontal battlefield troops fighting Tang Jun. Later, the court won a great victory in recovering the two capitals, which was directly related to the cooperation of the Uighur army.
Tang Suzong wrote an imperial edict praising Uighur: "Although it is difficult to help the poor, it is just to save the country, and Wan Li is unique, and one virtue is integrated." At the request of Uighur, Tang Suzong married his young daughter Princess Ningguo to Gelehan in the first year of Gan Yuan (758) and named him "Wu Ying Weiyuan Pigahan". Tang Suzong said in the book: "The northern soil is restless, and there is Tang. Seal it: How difficult the Central Plains is, Khan will go. " In the later stage of the battle to quell the Anshi Rebellion, Uighur Mouyu Ding Khan led the army to help, wiped out the forces of Shi Chaoyi and quelled the unrest that lasted for 8 years.
After the Anshi Rebellion, the Uighur power was strong, and the friction with the central government occurred from time to time. In the first year of Yongtai (765), Uighur soldiers went to Jingyang (now Jingyang, Shaanxi). Guo Ziyi, commander-in-chief of Tang Jun, was cautious and calm. In front of the tense army, he lost his gun, spared his gun, took off his armor, returned to the Uighur military camp alone, and shook hands with Ge Luo, the commander-in-chief of Uighur. Guo Ziyi took the lead in "taking wine as an oath", and "Yao Ge Luo also indulged in wine between the earth and the sun:" If your father swears ". This "alliance of Jingyang" avoided the first world war in Guanzhong.
In the first year of Jianzhong (780), Zhang Guangsheng, left behind by Tang Zhenwu, killed about 800 Uighur envoys, officials and businessmen headed by Khan's uncle Tu Dong on his way home. This led to the intensification of ethnic opposition, and many Uighurs advocated killing the envoys of the Tang Dynasty in Uighur. However, the success of Wuyi Khan deeply understands the great righteousness and tries his best to maintain peace and friendship between the two sides. He said to the Tang envoy, "I suddenly reported that Dong and others were dead, and now I kill you, and I still kill you with blood, which is only conducive to pollution. Is it not good for me to drown my blood with water? " A massacre was thus avoided.
In the third year of Zhenyuan (787), Uyghur Khan proposed marriage to Tang and decided to marry his eighth daughter Princess Xian 'an to Uighur. The next year, Uighur came to marry with a huge delegation. Khan wrote to Dezong: "I am a husband now and have half a son." If your majesty suffers from Xirong, please lead troops to get rid of it. "And asked to change the Chinese character" Wu "to" Wu ",which was approved by the court. In order to show that he is pampered, the imperial court named Uyi Khan as "the governor Lu Changshou, Bierga Khan" and Princess Xian 'an as "the wisdom end longevity and filial piety". /kloc-After the 1930s, natural and man-made disasters occurred from time to time among the Uighurs, who died in the attack in the fifth year of TaBaSi (840).
The history of the Uighur khanate lasted for 96 years. 13 Khan, 12 was conferred by the Tang Dynasty, and a total of 65 tributes were made to the Tang Dynasty. Their troops were dispatched by the imperial court and expanded Xinjiang many times, creating peace and chaos. In the Tang Dynasty, four princesses married Uighurs, among which Princess Ningguo married Wu Ying Khan. This is the first time that the Tang Dynasty married her daughter to a leader of a frontier minority, which shows that the ruling group of the Tang Dynasty attached great importance to the relationship with Uighur.
By the Tang Dynasty, Uighur had close ties with the mainland, and many Uighur merchants exchanged horses and furs for silk, tea and grain of the Han nationality. At that time, Han people in Chang 'an, Luoyang and other places were influenced by the Uighur wind and liked to wear Uighur clothes, and there was a scene of "Uighur clothes and horses".