Gu Yanhui (顧彥暉) (d. November 16, 897[1][2]) was a warlord late in the Chinese Tang dynasty, who controlled Dongchuan Circuit (東川, headquartered in modern Mianyang, Sichuan) from 891, when he succeeded his brother Gu Yanlang, to 897, when he, facing defeat against one-time ally Wang Jian, committed suicide with his family members.
Both he and his older brother Gu Yanlang served as junior officers at Tiande (天德, in modern Bayan Nur).
[3] In 887, then-reigning Emperor Xizong made Gu Yanlang the military governor (jiedushi) of Dongchuan Circuit.
[3] Meanwhile, a former colleague of Gu Yanlang's in the imperial guards corps, Wang Jian, had seized Lang Prefecture (閬州, in modern Nanchong, Sichuan) and claimed the title of prefect, and was sending the troops under him to raid the nearby regions, but remained in friendly relations with Gu Yanlang.
Emperor Zhaozong thereafter commissioned the chancellor Wei Zhaodu as the new military governor of Xichuan and summoned Chen back to Chang'an to serve as a general of the imperial guards.
When Chen refused, Emperor Zhaozong declared a general campaign against Chen, with Wei in command and Gu, Wang, and Yang Shouliang the military governor of Shannan West Circuit (山南西道, headquartered in modern Hanzhong, Shaanxi) serving as Wei's deputies.
By 891, Chen was in a desperate state, but the imperial government's resources had become drained due to a recent defeat in a campaign against another warlord, Li Keyong the military governor of Hedong Circuit (河東, headquartered in modern Taiyuan, Shanxi).
Hearing that news, Li Maozhen the military governor of Fengxiang Circuit (鳳翔, headquartered in modern Baoji, Shaanxi), who had defeated Yang Shouliang and seized control of Shannan West and Wuding (武定, headquartered in modern Hanzhong) Circuits late in 892, wanted to make Gu an ally.
Gu sought peace with Wang and promised, as part of the terms, to terminate relations with Li Maozhen.
[7] In 895, when Emperor Zhaozong temporarily fled the imperial capital Chang'an due to attempts by Li Maozhen and Wang Xingyu the military governor of Jingnan Circuit (靜難, headquartered in modern Xianyang, Shaanxi),[8] he issued an edict requesting that Wang Jian and Gu come to his aid.
[3] Wang used this opportunity to accuse Gu of refusing to do so and seizing his food supplies, and thereafter sent Hua to attack Dongchuan.