During Emperor Taizu's reign In 907, Zhu Quanzhong, who had the imperial court under his control at that point, had Emperor Zhaozong's son and successor
Emperor Ai yield the throne to him, ending Tang and starting a new
Later Liang as its Emperor Taizu. He Gui continued to serve in Xuanwu army and received continued promotions. In 909, he was made the military prefect (,
Tuanlianshi) of Xing Prefecture (, in modern
Xingtai,
Hebei). In 910, he was made the prefect of Ze Prefecture (, in modern
Jincheng,
Shanxi) and the acting military governor of Zhaoyi Circuit ()—which Ze Prefecture belonged to but the capital of which, Lu Prefecture (, in modern
Changzhi,
Shanxi), was then under the control of Later Liang's archrival
Jin—and was also created a marquess. In 912, he was made the prefect of Xiang Prefecture (相州, in modern Handan). He was soon recalled to the Later Liang imperial government to serve as the commander of the Left Longhu Army (). Later in 916, Qing Prefecture (, in modern
Qingyang,
Gansu) turned against Later Liang and surrendered to
Qi's general Li Jizhi (). Zhu Zhen ordered He Gui to command a Later Liang task force to counterattack, and He Gui's counterattack quickly captured Qi's Ning () and Yan () (both in modern Qingyang). After Qing also fell to him in fall 917, Zhu Zhen rewarded him by making him the military governor of Xuanyi Circuit (, headquartered in modern
Anyang,
Henan) and giving him the honorary
chancellor designation of
Tong Zhongshu Menxia Pingzhangshi (). Shortly after, Zhu Zhen further made him overall commander of the Later Liang forces on the northern border with Jin. (The chancellor
Jing Xiang, however, appeared to be dismayed over the choice, as he submitted petition in which he urged Zhu Zhen to pay more personal attention to the campaign against Jin rather than just leaving it to He Gui and other generals.) Soon, He Gui was in conflict with one of the generals under him, Xie Yanzhang (), as He Gui was known for his ability in commanding infantry soldiers and Xie was known for his ability in commanding cavalry soldiers, and He Gui did not like the fact that they had fairly equivalent reputation. In late 918, there was a time when He Gui and Xie were surveilling the potential battlefield, and He Gui pointed out a good spot to pitch camp—which, when the Jin army subsequently arrived, they used to pitch camp. He Gui thus suspected Xie of leaking the information to the Jin army. Meanwhile, He Gui wanted to directly confront the Jin army, while Xie argued for not engaging the Jin army directly but instead trying to take strategically advantageous positions to wait for the Jin army to make a mistake. He Gui thus further suspected Xie. After secretly reporting the suspicious to Zhu Zhen, He Gui and a general under him, Zhu Gui (), lay a trap for Xie and two other cavalry commanders, Meng Shencheng () and Hou Wenyu (), killing them and claiming that they had committed treason. Hearing of He Gui's killing of Xie, Li Cunxu was very pleased at what he considered a self-defeating action by He Gui, and decided to try to launch a direct attack on Daliang, despite contrary advice by his major general
Zhou Dewei. He thus abandoned the camp that he had pitched near He Gui's army and headed west. In response, He Gui also marched west. The armies met and fought at Huliu Slope (, in modern Heze), and initially, the Jin army was victorious, causing one of the generals under He Gui,
Wang Yanzhang, to try to retreat to the west, but the Jin army, mistaking Wang's troops for their own, believed that they had been defeated, and went into a general panic, causing many casualties, including Zhou and his son. In the aftermaths of the initial victory, He Gui try to take advantage by taking a hill position. Li Cunxu, realizing that the hill was tactically important, personally fought and captured it. The Jin generals
Li Sizhao and Li Jianji () subsequently led a charge of the Jin troops from the hill against the Later Liang troops, crushing them, before disengaging. (Overall, the Huliu Slope battle killed two-thirds of both the Later Liang and the Jin army.) In summer 919, He Gui led another attack against the Jin city of Desheng (, in modern Puyang), which was divided by the
Yellow River into the northern city and the southern city. He Gui stationed his Yellow River fleet on the river, chaining the ships together to serve as a blockade to block access between the two halves of the city, and then put the southern city under siege. When Li Cunxu arrived at the northern city, he initially could not cross to try to save the southern city. Li Jianji, however, led a group of soldiers and volunteered to charge the Later Liang fleet. They reached the fleet and cut off the chains by axes and fire, causing the Later Liang fleet to disassemble. This allowed the Jin army to then cross the river and lift the siege on the southern city of Desheng. He Gui was forced to retreat. He died later in the year, without carrying out another attack on Jin. He was given posthumous honors. == Notes and references ==