 Tian reacted by aligning himself with Zhu Mei the military governor of Jingnan Circuit (靜難, headquartered in modern Xianyang, Shaanxi) and Li Changfu the military governor of Fengxiang Circuit (鳳翔, headquartered in modern Baoji, Shaanxi).The imperial forces under Tian's control joined Zhu's and Li Changfu's troops in attacking Wang; Wang and Li Keyong fought back and, in a battle around the new year 886, defeated the Tian/Zhu/Li Changfu coalition forces.With Li Keyong's and Wang's forces approaching the capital Chang'an, Emperor Xizong and Tian initially fled to Li Changfu's headquarters Fengxiang, and then to Xingyuan (興元, in modern Hanzhong, Shaanxi).