乞伏乾帰
In 397, determined to punish Qifu Gangui, Lü Guang launched a major attack against Xicheng . This frightened Qifu Gangui's officials enough that they recommended a retreat to Chengji (成紀, in modern Tianshui, Gansu) to the east, but Qifu Gangui, seeing weaknesses in Later Liang's forces despite their numbers, stood his ground. Later Liang forces were initially successful, capturing several major Western Qin cities, but Qifu Gangui tricked Lü Guang's brother and major general Lü Yan (呂延) the Duke of Tianshui into believing that he was retreating, and Lü Yan fell into a trap Qifu Gangui set and was killed. Lü Guang, in fear, withdrew to his capital Guzang (姑臧, in modern Wuwei, Gansu). In 398, Qifu Gangui sent Qifu Yizhou to attack Later Liang, and he recovered some of the territory previously lost.