王仙芝
In the middle of the ninth century, it may be said that the Shatuo rewarded the generosity of the Tang by fighting alongside them against the invading Tibetans, playing a prominent role in numerous victories. They also helped quell the Pang Xun Rebellion and the Wang Xianzhi Rebellion.