Wang Hui (; died 891), courtesy name Zhaowen (), formally Marquess Zhen of Langye (), was an official of the Chinese Tang dynasty, serving as a chancellor during the reign of Emperor Xizong.
Background It is not known for certain when Wang Hui was born—although he was said to be in his 40s when Emperor Xuānzong (r. 846–859) was asking chancellors to find appropriate husbands for the princesses in the 850s, placing a loose timeframe on the time of his birth.Old Book of Tang, vol. 178.Zizhi Tongjian, vol. 249. His family was from Jingzhao Municipality (京兆, i.e., the region of the Tang dynasty capital Chang'an) and claimed ancestry from Wei Wuji () the Lord of Xinling, a famous prince of the Warring States period state Wei, explaining that the line eventually changed its surname to Wang because it was from a house of kings (and Wang meant "king"). Wang Hui's family also traced its ancestry to the Western Wei general Wang Pi (), whose descendants then served Sui dynasty and Tang. Wang Hui's grandfather Wang Cha () served as a prefectural prefect, and his father Wang Zili () served as a county magistrate.New Book of Tang, vol. 72.
Early career Wang Hui passed the imperial examinations in the Jinshi class in 858, during Emperor Xuānzong's reign. He started his official career as a copyeditor (校書郎, Xiaoshu Lang) at the Palace Library. When the official Shen Xun () served as the director of finances, he invited Wang to serve under him as a traveling reviewer.Neither Shen Xun's biography in the Old Book of Tang or the New Book of Tang gave dates for his service as the director of finances (although the New Book of Tang confirmed that he served as such), and so Wang's service under him cannot be dated. See Old Book of Tang, vol. 149 and New Book of Tang, vol. 132. At that time, Emperor Xuānzong, who was looking for appropriate husbands for his daughters, asked the chancellors to look among the officials who had passed the Jinshi examination, and Wang's name was mentioned. Wang, however, did not want to marry into the imperial family, and he met the chancellor Liu Zhuan to decline on the account of age, as he was already in his 40s, as well as poor health. Liu thus informed Emperor Xuānzong, and Wang was not ordered to marry a princess.As Liu Zhuan served only briefly as chancellor (in 858) before his death, this event must have occurred in 858. See Old Book of Tang, vol. 177.
Later, during the reign of Emperor Xuānzong's son Emperor Yizong, when the former chancellor Linghu Tao served successively as the military governor (Jiedushi) of Xuanwu (宣武, headquartered in modern Kaifeng, Henan) and then Huainan Circuit (淮南, headquartered in modern Yangzhou, Jiangsu), Wang served as Linghu's secretary.Linghu Tao was made the military governor of Xuanwu in 861 and Huainan in 862, placing a timeframe on Wang's service under him. See Old Book of Tang, vol. 172. Wang was subsequently recalled to Chang'an to serve as You Shiyi (), a low-level advisory official at the legislative bureau (中書省, Zhongshu Sheng), and it was said that while serving there, he submitted petitions making 23 suggestions, causing people to respect him for his insight. When the chancellor Xu Shang also served as the director of salt and iron monopolies, he invited Wang to serve as an assistant.Xu Shang served as chancellor from 865 to 869, and he started his service as the director of salt and iron monopolies earlier (although it is unclear when exactly he did so and when he was relieved of the position), so Wang's service under him must have been during that period. See New Book of Tang, vols. 63 , 113. Note that Wang's biography in the Old Book of Tang implied that Wang's service under Xu was during Emperor Xuānzong's reign, but the chronology of Xu's service meant that this was impossible. Later, after Xu was relieved of his chancellor post and made the military governor of Jingnan Circuit (荊南, headquartered in modern Jingzhou, Hubei), he wanted Wang to serve under him, but did not dare to ask, as he did not know whether Wang would be willing to leave the capital again. Wang heard about this, and he stated to Xu, "When I had just passed the Jinshi examination, it was you, Lord, who regarded me well. Now that you, Lord, will be receiving a seal and a military command, how can your subordinate not follow you?" Xu was pleased, and he had Wang made his assistant.
During Emperor Xizong's reign Later, when Gao Shi () oversaw the office of imperial censors (御史臺, Yushi Tai), he had Wang Hui recalled to Chang'an to serve as a supervising censor Shi Yushi Zhiza (), as well as Zhifang Yuanwailang (), a low-level official at the ministry of civil service affairs (吏部, Libu). From that latter position, Wang was later promoted to Kaogong Langzhong (), a supervisory official at the ministry of civil service affairs.Neither Gao Shi's biography in the Old Book of Tang or the New Book of Tang indicated that he was ever chief imperial censor, so this event could not be dated for certain, but based on the context of Wang's interaction with Xiao Fang, it was placed here in this article under the period under Emperor Xizong's reign. See Old Book of Tang, vol. 168 and New Book of Tang, vol. 177. The chancellor Xiao Fang particularly respected Wang for his administrative abilities. Wang was later made Sifeng Langzhong (), still a supervisory official at the office of civil service affairs, as well as the magistrate of Chang'an County (one of the two counties making up the capital), but as at that time, the ranks of imperial scholars (翰林學士, Hanlin Xueshi) was severely lacking, Xiao had him made an imperial scholar and also Zhifang Langzhong (), also a supervisory official at the ministry of civil service affairs; Wang was also put in charge of drafting edicts. He was later made Zhongshu Sheren (), a mid-level official at the legislative bureau. Yet later, he was made chief imperial scholar (翰林學士承旨, Hanlin Xueshi Chengzhi) and deputy minister of census (戶部侍郎, Hubu Shilang). While serving as chief imperial scholar, he also successively served as deputy minister of defense (兵部侍郎, Bingbu Shilang) and then Shangshu Zuo Cheng (), one of the secretaries general of the executive bureau (尚書省, Shangshu Sheng).As Xiao Fang was chancellor from 873 to 875, this must have occurred during that period. See Old Book of Tang, vol. 172.
In late 880, as the major agrarian rebel Huang Chao was approaching Chang'an, the powerful eunuch Tian Lingzi, in order to deflect blame for the imperial forces' inability to stop Huang, blamed the leading chancellor Lu Xi for erroneous strategies and had Lu demoted. (Lu, in response, committed suicide.) Wang and Pei Che were made chancellors (with the designation Tong Zhongshu Menxia Pingzhangshi ()) to replace Lu. However, on the same day, news arrived that Huang was about to attack Chang'an. Tian took Emperor Xizong and fled toward Chengdu, and the officials scrambled to either try to follow the emperor or to hide.Zizhi Tongjian, vol. 254. Wang tried to follow the emperor in flight, but in his attempt to do so fell into a bush in a valley and was injured. He was captured by Huang's soldiers, who took him back to Chang'an, where Huang had declared himself emperor of a new state of Qi. Huang tried to force Wang to accept a commission in the Qi government, but Wang pretended to have been so severely injured that he could not speak, even when swords were placed against him. Huang had Wang returned to his mansion to recuperate, under close watch, and he sent doctors to treat Wang. After about a month, though, when the guards had relaxed, Wang disguised himself as a merchant and fled to Hezhong (河中, in modern Yuncheng, Shanxi). He submitted a report to Emperor Xizong (who was then at Chengdu), and Emperor Xizong had him remotely made the minister of defense (兵部尚書, Bingbu Shangshu).
Wang was then planning to join the emperor in Chengdu, but he was then commissioned to review the Tang troops in the east. At that time, the chancellor Wang Duo was in overall command of the operations against Huang, but Tang forces had not been able to gain a decisive victory over Qi. The eunuch monitor of the army, Yang Fuguang wanted to invite the Shatuo rebel Li Keyong to join the Tang cause, and Wang Hui agreed with the proposal. Wang Duo then issued an edict in Emperor Xizong's name pardoning Li Keyong and summoning him to join the Tang imperial cause.Zizhi Tongjian, vol. 255. After Tang forces, with Li Keyong as a major contributor, defeated Huang and recaptured Chang'an early in 883, Wang, for his contribution, was made You Pushe (), one of the heads of the executive bureau.
Meanwhile, Zhaoyi Circuit (昭義, headquartered in modern Changzhi, Shanxi) had been going through much turmoil—as the officer Cheng Lin () had killed the military governor Gao Xun () in a mutiny in 881 and was in turn killed by another officer, Meng Fangli. The people of Zhaoyi then asked the eunuch monitor Wu Quanxu () to act as military governor, but Meng rejected this (claiming that a eunuch should not be a governor) and put Wu under house arrest, instead claiming that he wanted the imperial government to send a replacement. The imperial government commissioned Wang Hui to serve as Zhaoyi's military governor. Wang, however, knowing that Meng had full control of three of Zhaoyi's five prefectures (i.e., the ones east of the Taihang Mountains), believed that he would not be actually able to exercise control, and so declined the commission. The circuit was then instead given to Zheng Changtu, although Zheng left his post just three months later, leaving Meng in control.
At this time, Chang'an was in shambles due to the warfare, and Emperor Xizong had not returned to Chang'an. Wang was made the director of Daming Palace () and acting mayor of Jingzhao, overseeing the recovery effort.Zizhi Tongjian, vol. 256. It was said that Wang comforted the people, such that the people began to return. However, the powerful individuals inside the palace (i.e., eunuchs headed by Tian) and outside were trying to reconstruct their mansions, and they often infringed on the people's rights. When the people complained, Wang tried to exercise the laws properly against the powerful people, and thus offended them. They thus had another official, Xue Qi (), made Wang's deputy, with the intent that Xue would strip Wang's actual authority, but Wang, citing the fact that Xue's father had just died and that he should thus be observing a period of mourning, refused to let Xue take office. This further angered the powerful people, and Wang was stripped of his posts and summoned to Chengdu. He was then made a senior advisor to the Crown Prince—an entirely honorary post as there was no crown prince at the time—and ordered to retire to Hezhong. About three months later, even that honorary post was stripped, although a similar post was conferred after Emperor Xizong returned to Chang'an in 885, and Wang was recalled to Chang'an, although he declined the post on account of illness. The chancellors, rebuking Wang for not accepting the imperial largess, had him made the prefect of Ji Prefecture (集州, in modern Bazhong, Sichuan) and ordered him to report immediately.