Qifu Gangui
Later Liang's power appeared to start to fall apart in 397, when Lü Guang, determined to punish Qifu Gangui for his shifting positions, launched a major attack against Western Qin's capital Xicheng (西城, in modern Baiyin, Gansu). 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 Guzang.