Born into an illustrious scholarly lineage in Taiyuan, displaying deep erudition from his youth.

Wang Qi (王起)
王起
Wang Qi (王起, 760–847), courtesy name Quanzhi, ancestral home Taiyuan (modern Taiyuan, Shanxi), was an eminent chancellor, classical scholar, civil service examiner, and writer of the middle-to-late Tang dynasty, serving as a venerable statesman across eight imperial reigns from Dezong to Xuanzong. Dedicated to rigorous scholarship from boyhood, he commanded vast erudition across the Confucian classics, historical precedents,…
PROFILE
Wang Qi (王起, 760–847), courtesy name Quanzhi, ancestral home Taiyuan (modern Taiyuan, Shanxi), was an eminent chancellor, classical scholar, civil service examiner, and writer of the middle-to-late Tang dynasty, serving as a venerable statesman across eight imperial reigns from Dezong to Xuanzong. Dedicated to rigorous scholarship from boyhood, he commanded vast erudition across the Confucian classics, historical precedents, ritual texts, and Han-Tang institutional statutes. In 798, Wang Qi passed the jinshi examination, beginning his career as Collator in the Jixian Academy before placing in the elite "Examination for Remonstrant Talent" decree examination and receiving appointment as Sheriff of Lantian. During Emperor Xianzong's Yuanhe era, he was recruited by Chancellor Li Jifu as Chief Secretary of the Huainan circuit, subsequently advancing to Investigating Censor, Diary Remonstrator, Vice Director of Personnel, and Drafter of Imperial Decrees. In 821, amid widespread scandal involving examination patronage among powerful aristocrats, Emperor Muzong commissioned Wang Qi and Bai Juyi to re-examine the results, leading to the disqualification of numerous aristocratic candidates and Wang Qi's elevation to Vice Minister of Rites. During the early Changqing era, Wang Qi presided over the imperial examinations for two consecutive cycles, establishing the statutory rule requiring that preliminary examination results be submitted to chancellors for collective review before public posting. His selections were celebrated as the "Finest Scholars of Changqing," elevating figures such as Bai Minzhong and Lu Shang. Under Emperor Wenzong, Wang Qi rose to Chancellor (Tong Zhongshu Menxia Pingzhangshi) and Duke of Lu, utilizing his stature to soothe factional disputes following the Sweet Dew Incident and promoting classical education. Later governing Shannan West, he displayed incorruptible benevolence. He passed away peacefully in 847 at the age of eighty-eight, receiving posthumous honors as Grand Preceptor and the canonized name Wengong. Serving at court for half a century, he authored the massive 300-volume encyclopedia Lei Yuan, earning universal veneration as a paramount Confucian master of the Tang dynasty.
- Courtesy Name
- Quanzhi (权之)
- Posthumous Title
- Wengong (文公)
- Native Place
- Taiyuan (太原, modern Taiyuan, Shanxi)
- Date of Birth
- 760 (1st year of Shangyuan, Tang Dynasty)
- Date of Death
- 847 (1st year of Dazhong, Tang Dynasty)
- Age at Death
- 88
- Noble Titles
- Duke of Lu (鲁国公)
- Highest Office
- Chancellor (Tong Zhongshu Menxia Pingzhangshi), Left Vice Director of the Department of State Affairs, Regional Commander of Shannan West
- Identity Description
- Prominent middle-to-late Tang chancellor, classical scholar, civil service examination reformer, elder statesman of the Wenzong and Xuanzong reigns
LIFE TIMELINE
Passed the jinshi examination; appointed Collator in Jixian Academy and Sheriff of Lantian after passing the decree examination.
Recruited by Chancellor Li Jifu as Chief Secretary of the Huainan garrison, renowned for elegant prose.
Appointed Vice Director in the Ministry of Justice and Drafter of Imperial Decrees, composing state edicts during regional pacification.
Collaborated with Bai Juyi to re-examine the civil service results, eliminating corrupt nominees and becoming Vice Minister of Rites.
Directed the civil service examinations, establishing the statutory procedure requiring chancellor verification before posting.
Summoned to the capital from Shannan West and appointed Chancellor (Pingzhangshi), enfeoffed as Duke of Lu.
Stepped down from chancellorship under Emperor Wuzong, serving as Left Vice Director and managing administrative codification.
Revered as an elder Confucian statesman upon Xuanzong's accession, appointed Acting Situ.
Passed away peacefully in Chang'an; Emperor Xuanzong suspended court audiences, posthumously creating him Grand Preceptor and canonizing him as Wengong.
Relationship graph
BIOGRAPHY
Biography
Early Learning and Decree Remonstrance
Wang Qi was born in 760 into a prominent scholar-gentry clan in Taiyuan that maintained strict traditions of Confucian scholarship. Endowed with precocious intellectual brilliance, he was devoted to reading, never setting aside his books. As a youth, he not only committed the Five Classics to memory but also read widely across Qin and Han historical annals and philosophical treatises, developing encyclopedic knowledge of imperial rituals, official titles, and calendar systems. His prose style was dignified, balanced, and elegant, earning him an early reputation across the metropolitan scholar community.
In 798, thirty-nine-year-old Wang Qi traveled to Chang'an, passing the civil service examination with high honors. He was initially appointed Collator in the Jixian Academy, where he had access to vast imperial libraries, allowing him to absorb thousands of classical volumes. Soon after, Emperor Dezong sponsored a decree examination to recruit exceptional talents; Wang Qi sat for the demanding "Examination for Remonstrant Talent" category. Before the throne, he submitted forthright assessments of state governance without dissimulation, earning top marks and appointment as Sheriff of Lantian. In this metropolitan county, he settled lawsuits fairly and suppressed abusive local magnates, showcasing remarkable administrative capability.
Administrative Service in Huainan and Drafting Decrees
During the early Yuanhe era of Emperor Xianzong, the court sought to restore central authority over regional military governors. In September 808, Chancellor Li Jifu was dispatched as Military Governor of Huainan. Recognizing Huainan's strategic importance, Li Jifu recruited Wang Qi—then an Investigating Censor—as his Chief Secretary. Managing official correspondence, Wang Qi drafted memorials and military directives that were admired for their balance, clarity, and precision, earning Li Jifu's deep trust.
Returning to Chang'an, Wang Qi served successively as Palace Censor, Academician in the Jixian Academy, Diary Remonstrator, Vice Director of Personnel, and Historiographer. In 819, he was promoted to Vice Director in the Ministry of Justice concurrently serving as Drafter of Imperial Decrees. Drafting imperial proclamations was reserved for the foremost stylists of the realm. As Emperor Xianzong conducted campaigns against warlord Wu Yuanji in Huaixi and rebel garrisons in Hebei, Wang Qi composed major military appointments, imperial declarations, and state edicts through the night. His balanced prose and commanding dignity inspired front-line armies, earning high praise from the emperor.
The Changqing Examination Re-evaluations and Reform
In January 820, Emperor Muzong took the throne, appointing Wang Qi as Secretariat Drafter. Observing the young monarch's indulgence in hunting and banquets, Wang Qi submitted repeated remonstrances urging devotion to ancestral duties, earning the highest rating in annual personnel evaluations.
In 821, a major corruption scandal rocked the civil service examination. Qian Hui, Vice Minister of Rites, accepted patronage requests from Chancellor Duan Wenchang and Academician Li Shen, passing unqualified aristocratic candidates. Public outrage erupted. Emperor Muzong ordered Wang Qi and Bai Juyi to administer an imperial re-evaluation of the successful candidates. Wang Qi and Bai Juyi tested the candidates in the imperial palace, evaluating their essays with strict impartiality. Ten aristocratic examinees failed miserably and were disqualified. Muzong banished Qian Hui and promoted Wang Qi to Vice Minister of Rites, appointing him Chief Examiner.
In 822, Wang Qi directed the examinations again, resolving to eliminate nepotism. He petitioned the emperor: once examination papers were graded, the preliminary pass list and original essays had to be submitted to chancellors for collective verification before the official results could be posted. Muzong approved this regulation. This reform established an external check against examiner favoritism. Under Wang Qi's rigorous scrutiny, only genuine scholars were selected, including future chancellors Bai Minzhong and Lu Shang. Contemporaries celebrated his cohort as the "Finest Scholars of Changqing," restoring integrity to the civil service examination.
Chancellor of Wenzong and Imperial Elder
Following his tenure as examiner, Wang Qi served as Vice Minister of Personnel and Minister of War. Under Emperor Wenzong, he served as Minister of Revenue, Regional Commander of Shannan West, and Mayor of Taiyuan. In Shannan West (modern Hanzhong, Shaanxi), he reduced corvée, settled displaced populations, repaired postal roads, and promoted irrigation, winning deep popular affection.
In spring 839, seeking to restore moral authority following the trauma of the Sweet Dew Incident, Emperor Wenzong recalled eighty-year-old Wang Qi to Chang'an, appointing him Chancellor (Tong Zhongshu Menxia Pingzhangshi), Director of the Chancellery, and Academician in the Hongwen Academy, enfeoffing him as Duke of Lu.
As Chancellor, Wang Qi governed with classical restraint. Avoiding partisan alignment in the Niu-Li factional struggle, he upheld institutional statutory precedent and mediated court disputes with Confucian equanimity. Emperor Wenzong frequently summoned him to the Yanying Hall for private consultations on classical interpretations and dynastic governance, exclaiming: "Having Wang Qi at court is like having ancestral bronze vessels in the ancestral temple—it commands universal reverence!" Wenzong tasked him with directing the Jixian Academy and Historiography Office, where he oversaw the compilation of the Kaicheng Ritual Statutes and continuations of the Tongdian.
Service Across Eight Reigns and Venerable Demise
In 841, Emperor Wuzong took the throne, employing Li Deyu as chief minister and reassigning Wang Qi as Left Vice Director of State Affairs, and later reappointing him to Shannan West with the ranks of Acting Situ and Sikong. Despite his premier rank, Wang Qi lived frugally, donating his salary to relieve impoverished kinsmen and support poor scholars, keeping only thousands of classical books in his residence.
In 846, Emperor Xuanzong acceded, venerating Wang Qi as a living monument who had served eight successive reigns since Dezong. Xuanzong summoned him to court, offering him a seat of honor and consulting him on major ritual dilemmas. In the autumn of 847, eighty-eight-year-old Wang Qi passed away peacefully at his residence in the Yongxing Ward of Chang'an.
Emperor Xuanzong mourned his death, suspending court for three days. Commending his pure virtue and monumental service, Xuanzong posthumously created him Grand Preceptor and canonized him as Wengong. Wang Qi authored the 300-volume encyclopedia Lei Yuan, alongside commentaries on the Five Classics, leaving an enduring intellectual and moral legacy in late Tang history.
Major Achievements
Re-evaluation and Establishing Chancellor Verification
Wang Qi's intervention in the civil service examinations during the Changqing era represented a foundational turning point in imperial examination history.
Confronting systemic patronage in the 821 examination, he executed an impartial re-evaluation alongside Bai Juyi, eliminating corrupt aristocratic candidates. Furthermore, he instituted the procedure requiring that pass lists be submitted to the chancellors for collective review before publication. This reform curbed examiner nepotism, serving as a vital conceptual precursor to the Song dynasty palace examination system.
"Finest Scholars of Changqing" and Cultivating Statesmen
Wang Qi's tenure as Chief Examiner in 821 and 822 supplied the Tang empire with exceptional administrative leadership for decades.
Prioritizing classical scholarship and moral integrity, he selected future chancellors such as Bai Minzhong and Lu Shang, alongside prominent writers like Du Mu. Historians consistently praised his selections as the "Finest Scholars of Changqing," establishing him as an archetype of the discerning and upright examiner.
Soothing Factionalism and Preserving Court Institutions
Serving across eight imperial reigns spanning fifty years, Wang Qi acted as a stabilizing pillar during the turbulence of late Tang politics.
Amid the destructive rivalries of the Niu-Li factional struggle and the dominance of palace eunuchs, he maintained complete independence, refusing to join partisan alignments. His moral authority and mastery of administrative statutes helped preserve the institutional continuity of the Tang state following the Sweet Dew Incident.
Compiling Lei Yuan and Preserving Classical Lore
Wang Qi was a towering intellectual figure in late Tang scholarship.
Drawing on imperial collections in the Jixian Academy, he supervised the compilation of the monumental 300-volume encyclopedia Lei Yuan, categorizing classical knowledge from antiquity through the Tang dynasty. Additionally, he authored commentaries on ritual texts, preserving foundational Han-Tang classical learning for subsequent generations.
Personal Relationships
- Early Patron: Li Jifu, Tang chancellor who recognized Wang Qi's talent and appointed him Chief Secretary in Huainan.
- Examination Ally and Colleague: Bai Juyi, famed poet and official who co-directed the Changqing examination re-evaluations.
- Discredited Examiner: Qian Hui, Vice Minister of Rites dismissed for examination favoritism in 821.
- Promoted Disciple and Chancellor: Bai Minzhong, jinshi examinee passed by Wang Qi, later Chancellor under Xuanzong.
- Promoted Disciple and Chancellor: Lu Shang, jinshi examinee passed by Wang Qi, later Chancellor.
- Imperial Patron: Li Ang (Emperor Wenzong of Tang), who appointed Wang Qi Chancellor, calling him a vessel of state.
- Venerating Sovereign: Li Chen (Emperor Xuanzong of Tang), who honored Wang Qi as an elder statesman and granted him the title Grand Preceptor.
Historical Evaluations
- Old Book of Tang (Jiu Tangshu, Wang Qi): "Wang Qi was broadly learned, possessing deep insight into the classics. From his jinshi graduation in Zhenyuan, he served across eight reigns. Directing examinations in Changqing, he selected the finest scholars. As chancellor, he was gentle, upright, and free from partisan ties—truly an exemplar of Confucian integrity for the Tang house!"
- New Book of Tang (Xin Tangshu, Wang Qi): "Fond of study from youth, Wang Qi left no book unread, especially excelling in ritual. Serving for fifty years, his moral prestige was immense. Emperor Wenzong remarked: 'Wang Qi's stature is like gold and jade; his conduct is a model for all.' Posthumously created Grand Preceptor and canonized as Wen, his fame endures through eternity."
- Sima Guang, Zizhi Tongjian: "Wang Qi rose through pure Confucian virtue, serving within the capital and in border garrisons with incorruptible integrity. Serving eight reigns without a single blemish, his Changqing selections remain celebrated to this day."
- Wang Fuzhi, Du Tongjian Lun: "Following the Sweet Dew Incident, officials compromised their integrity or engaged in factional warfare; Wang Qi alone anchored himself in classical scholarship, dignified in the halls of state. Emperor Wenzong relied on him as a sacred vessel, because his learning was genuine and unaffected by power."
Related Entries
- Emperor Wenzong of Tang
- Emperor Xuanzong of Tang
- Bai Juyi
- Bai Minzhong
- Li Jifu
- Imperial Examination System
- Lei Yuan
- Changqing Examination Scandal
FIGURES ASSOCIATED WITH THIS DYNASTY
Bibliography
- Old Book of Tang, Volume 164, Biographies 114: Wang Qi
- New Book of Tang, Volume 167, Biographies 92: Wang Qi
- Zizhi Tongjian, Volumes 241–248 (Tang Records)
- Complete Tang Prose, Volume 717: Collected Writings of Wang Qi
- Tang Zhiyan, Volume 8: The Finest Scholars of Changqing