Illig Qaghan

[3] After coming of age, he was given the title Baghatur shad (莫賀咄設) and was assigned to rule the eastern parts of the empire.

Later raids were accompanied by Gao Kaidao and Yuan Junzhang (苑君璋), a general formerly under Liu Wuzhou.

Soon raids restarted, in 623, khagan were assisted by Gao Kaidao and Liu Heita in sieging Mayi (present-day Shuozhou, Shanxi) and capturing it.

However Li Daozong (a cousin of Taizong) was able to repel him, and further expel the khagan's nephew Ashina Yushe (阿史那郁射) from the Wuyuan (五原, in modern Yulin, Shaanxi).

As Wen was an important official, khagan put him under interrogation and asked him about the strengths and weaknesses of the Tang state.

Emperor Taizong, accompanied by Gao Shilian and Fang Xuanling, was forced to meet Tujue across the river and personally negotiate peace terms, including tributes to Eastern Turks, before Illig withdrew.

Emperor Taizong of Tang wasted no time in allying with these Tiele and the Khitans in a joint attack.

However shad was defeated by Huige forces commanded by Pusa (菩薩) near Malie (near modern Gansu).

Eastern governor Ashina Shibobi was unsuccessful in defeating rebels, which made khagan angry and ordered him to be flogged and imprisoned for 10 days.

In fear, khagan retreated to Qikou (磧口, in modern Xilin Gol League, Inner Mongolia).

He was created a commander and appointed to be a governor of Guó Prefecture which was rich with deer in 632 by Taizong, but he declined.

He died in February 634 and was created Prince of Guiyi (歸義王) and posthumously named Huang (荒) by Taizong.

Tang dynasty's campaign against illig Qaghan in 629–630