 Li Yuan tried to get support from Li Gui, who occupied Liangzhou (in present-day Wuwei, Gansu), and he ordered Li Shimin to press on towards Gaozhi at the same time.Xue Rengao dispatched his elite general Zong Luohou (), leading more than 100,000 soldiers to resist.Li Shimin thought the Tang army was frustrated while the enemies were inspiring.