The khagans of the Yenisei Kirghiz Khaganate claimed descent from the Han Chinese general Li Ling, which was mentioned in the diplomatic correspondence between the Kirghiz khagan and the Tang Dynasty emperor, since the Tang imperial Li family claimed descent from Li Ling's grandfather, Li Guang. The Kirghiz qaghan assisted the Tang dynasty in destroying the Uyghur Khaganate and rescuing the Princess Taihe from the Uyghurs. They also killed a Uyghur khagan in the process.
