Meanwhile, it was said that Bazhuo was intolerant and ill-tempered, as well as suspicious. He removed Yi'nan's chief advisors and replaced them with people close to him, which led to the nobles despising him—and he responded by killing a large number of them, throwing the Xueyantuo court into terror. Yaoluoge Tumidu (), the chieftain of Huige, then a Xueyantuo vassal, rebelled along with the Pugu () and Tongluo () tribes and dealt Bazhuo a great defeat. Emperor Taizong took the chance to order a major assault against Xueyantuo proper by Li, Ashina, Zhishi, Qibi Heli, Xue Wanche, and Zhang Jian. As the assault was beginning, by chance a Tang officer, Yuwen Fa (), was serving as an emissary to the Wuluohu () and the Mohe and returning toward Tang, when he encountered the Xueyantuo general Abo (). Yuwen attacked Abo with the Mohe troops with him at the time and defeated Abo—which led to even greater confusion for Xueyantuo, whose people believed that the main Tang army had already arrived. In panic, Bazhuo fled to the vassal Ashide () tribe, and when Huige forces heard this, they attacked and killed Bazhuo, slaughtering the Xueyantuo imperial clan members that they could find. Many Xueyantuo generals surrendered to Tang.