Li Yuanji sent the general Zhang Da (張達) against Liu, despite Zhang's reluctance, as Li Yuanji gave Zhang only a small army, and Liu defeated Zhang. Zhang, angry at Li Yuanji, instead surrendered to Liu and led Liu to capture Yuci (榆次, in modern Jinzhong, Shanxi).
Li Yuanji ordered General Zhang Da to attack Liu despite Zhang's resistance. With a limited force from Li Yuanji, Liu succeeded in defeating Zhang. Zhang became displeased and instead joined forces with Liu, who captured Yuci (Yuzhi, in modern Jinzhong, Shanxi).