s ▁expedition ▁was ▁a ▁success ▁for ▁the ▁Tang ▁emp ire . ▁Upon ▁returning ▁to ▁China , ▁Pe i ▁was ▁appointed ▁the ▁minister ▁of ▁rit uals ▁and ▁Great ▁general ▁of ▁the ▁right ▁fl ank ▁gu ards . ▁ ▁In ▁ 6 7 9 , ▁Turk ic ▁ch ie ft ain ▁Ash ide ▁W en fu ▁re bel led . ▁Prote ctor ate ▁general ▁X iao ▁Si ye , ▁a ▁noble ▁from ▁Lan ling ▁Command ery , ▁was ▁defeated ▁by ▁Ash ide . ▁Pe i ▁then ▁took ▁over ▁the ▁command ▁from ▁X iao ▁and ▁decis ively ▁won ▁a ▁battle ▁against ▁the ▁Tur ks ▁in ▁an ▁amb ush . ▁Ash ide ▁fled . ▁Not ▁long ▁after ▁the ▁first ▁defeat , ▁he ▁gathered ▁his ▁troops ▁and ▁un ited ▁them ▁with ▁the ▁troops ▁of ▁another ▁ch ie ft ain ▁Ash ina ▁Fun ian . ▁Pe i ▁saw ▁the ▁dist rust ▁and ▁susp ic ions ▁between ▁the ▁two ▁ch ie ft ains ▁and ▁explo ited ▁this ▁weak ness ▁by ▁driving ▁a ▁w edge ▁between ▁them . ▁Event ually , ▁Ash ina ▁Fun ian ▁murder ed ▁Ash ide ▁W en fu ▁out ▁of ▁the ▁fear ▁of ▁Tang ' s ▁reven ge ▁against ▁him . ▁When ▁Fun ian ▁was ▁brought ▁to ▁the ▁Tang ▁court , ▁he ▁was ▁executed ▁regardless ▁of ▁the ▁fact ▁that ▁he ▁surrender ed ▁his ▁troops . ▁Pe i ▁had ▁promised ▁Ash ina ▁that ▁he ▁would ▁not ▁be ▁put ▁to ▁death , ▁however , ▁the ▁court ▁did ▁not ▁respect ▁Pe i ' s ▁promise . ▁Due ▁to ▁this ▁incident