韦温
Related historical visual for Wei Wen
Image creditsMarina Borodachenkova, Wei Wen und António Manuel de Bastos Pereira · CC BY 3.0Image source

Historical figure

Wei Wen (韦温)

韦温

Wei Wen (788–845), courtesy name Hongyu, was a native of Wannian County, Jingzhao (modern Xi'an, Shaanxi Province). He was a ninth-generation descendant of Duke Xiaoyao of Northern Zhou, grandson of Vice Minister of Personnel Wei Zhao, and son of Right Policy Advisor Wei Shou. He was an illustrious remonstrating minister, moral authority of the bureaucratic elite, and outstanding regional administrator during the reigns of…

Era not stated

PROFILE

Wei Wen (788–845), courtesy name Hongyu, was a native of Wannian County, Jingzhao (modern Xi'an, Shaanxi Province). He was a ninth-generation descendant of Duke Xiaoyao of Northern Zhou, grandson of Vice Minister of Personnel Wei Zhao, and son of Right Policy Advisor Wei Shou. He was an illustrious remonstrating minister, moral authority of the bureaucratic elite, and outstanding regional administrator during the reigns of Emperors Wenzong and Wuzong. Endowed with exceptional intellectual brilliance, Wei Wen recited a full volume of the Classic of Poetry daily by age seven and passed the classical examinations at eleven, achieving national renown for his outstanding judicial evaluations. Renowned for profound filial piety, when his father retired due to chronic illness, Wei Wen turned down prestigious censorate offices to accept modest sinecures, personally attending to his father's medicines without undressing for twenty years, mourning his father's death with rigorous asceticism. Returning to office during the Changqing and Taihe eras, he served successively as Right Reminder, Vice Director of Merit Assessment, and Supervising Secretary. Characterized by unyielding moral integrity, he never compromised with political currents. Prior to the Sweet Dew Incident, when Chancellor Song Shenxi was framed by eunuch Wang Shoucheng, Wei Wen led remonstrating colleagues in prostrating before the palace gates, boldly unmasking the plot and saving the chancellor's life. In 831, when the imperial ancestral temple leaked and Emperor Wenzong ordered palace eunuchs to oversee repairs, Wei Wen submitted a memorial arguing that sacred dynastic rituals must never be entrusted to private palace servants, ensuring ministerial administrative authority. He thrice declined prestigious Hanlin Academy appointments to honor his late father's dying injunction never to accept confidential palace posts. As Supervising Secretary, he boldly rejected and returned three imperial pardon decrees concerning corrupt general Wang Yanping and court musicians, winning the deep admiration of Emperor Wenzong. During the prolonged and venomous Niu-Li Factional Strife, Wei Wen maintained personal friendships with Niu faction leaders Yang Sifu and Li Jue, yet Li faction leader Li Deyu deeply revered him as an unbending and upright gentleman. Standing above factionalism, he urged his friends to employ Li Deyu to defuse animosities, while resolutely rejecting entreaties from the treacherous adventurer Zheng Zhu. In his later years, he governed the Shan-Guo and Xuanxi regions with equity, curbing local tyrants and relieving agrarian distress. Passing away at his post in Xuanzhou in 845 at fifty-eight, he was posthumously honored as Minister of Works with the posthumous title Xiao. Renowned poet Du Mu composed his epitaph, celebrating him as a towering moral beacon whose resolute words neither sovereign nor chancellor could ever sway.

Courtesy Name
Hongyu
Posthumous Name
Xiao (posthumously honored as Minister of Works with the title Xiao)
Ancestral Home
Wannian County, Jingzhao (modern Xi'an, Shaanxi Province)
Date of Birth
788 (4th year of the Zhenyuan era, Tang Dynasty)
Date of Death
845 (5th year of the Huichang era, Tang Dynasty)
Age at Death
58
Highest Office
Surveillance Commissioner of Xuan, She, and Chi Prefectures and concurrent Censor-in-chief, Vice Minister of Personnel, Right Assistant Director of the Department of State Affairs (posthumously honored as Minister of Works)
Major Offices
Chief of Rituals in the Court of Imperial Sacrifices, Proofreader in the Palace Library, County Defender of Xianyang, Assistant Author, Right Reminder, Vice Director of Merit Assessment, Supervising Secretary, Right Assistant Director, Vice Minister of War, Surveillance Commissioner of Shan-Guo, Vice Minister of Personnel, Surveillance Commissioner of Xuanxi
Accurate Identity
Eminent remonstrator and moral exemplar of the mid-to-late Tang Dynasty, fiercely independent statesman rising above the Niu-Li Factional Strife, posthumous Minister of Works

LIFE TIMELINE

Aristocratic Birth

Born into the prominent Jingzhao Wei clan; recited classical odes at seven, passed examinations at eleven.

Superior Evaluation

Passed judicial appraisal tests with top marks; proved genuine scholarship through family testing, appointed Proofreader.

Filial Retirement

Declined censorate office to care for his ailing father; tended his father's sickbed without resting for twenty years.

Remonstrating at Court

Appointed Right Reminder; led colleagues in prostrating before the throne to rescue Chancellor Song Shenxi from false charges.

Defending Ancestral Temple

Protested eunuchs repairing ancestral shrines to restore departmental governance; persuaded Wenzong to decline honorary titles.

Honoring Father's Injunction

Thrice declined Hanlin appointments to fulfill family vows; refused Zheng Zhu's invitation, avoiding the Sweet Dew purge.

Returning Imperial Edicts

Appointed Supervising Secretary; thrice rejected and returned imperial pardons for Wang Yanping's corruption and favored musicians.

Admonishing the Throne

Defended Crown Prince Li Yong during palace audiences, arguing the sovereign was responsible for neglecting earlier moral education.

Governing Shan-Guo

Appointed Right Assistant Director and Shan-Guo Surveillance Commissioner; supplied border troops amidst Uighur and local crises.

Administrative Rectitude

Recalled as Vice Minister of Personnel; spoke up for Li Han before Li Deyu, subsequently transferred to govern Xuanxi.

Virtuous Passing

Passed away in Xuanzhou at fifty-eight; posthumously honored as Minister of Works with the honored name Xiao.

Relationship graph

BIOGRAPHY

Biography

Precocious Intellect and Filial Devotion

Wei Wen descended from the Xiaoyao Branch of the illustrious Jingzhao Wei clan. His grandfather, Wei Zhao, served under Emperors Daizong and Dezong as Vice Minister of Personnel and was posthumously honored as Grand Commandant. His father, Wei Shou, served as Right Reminder, Hanlin Academician, and Right Policy Advisor under Emperor Dezong, enjoying exceptional imperial intimacy before retiring and being posthumously honored as Grand Preceptor. Endowed with precocious intellectual abilities and adult gravity, Wei Wen memorized and recited a full volume of the Classic of Poetry daily by age seven. At eleven, he passed the classical examinations, astonishing scholars across the capital.

Entering adulthood, Wei Wen participated in the Ministry of Personnel civil service examinations, achieving premier standing in judicial evaluations and receiving appointment as Chief of Rituals in the Court of Imperial Sacrifices and Proofreader in the Palace Library. When his father heard the news at his rural retreat, he remarked with surprise that achieving top rank must have involved courting political favorites. He set up examination desks in the courtyard, drafting two intricate legal judgment problems to test his son on the spot. Wei Wen composed flawless answers without pause. Overjoyed, Wei Shou exclaimed that his son's scholarship was genuine and unblemished.

Wei Wen was subsequently assigned as County Defender of Xianyang and later summoned to serve as Investigating Censor. Considering that his elderly father was chronically ill and that censorate protocols strictly curtailed private family visits, Wei Wen petitioned the throne to resign from executive office. He was reassigned as Assistant Author, retiring to care for his father immediately after formal acknowledgment. Over the ensuing two decades, Wei Wen closed his doors to visitors, attending to his father's diet and medication day and night without removing his garments. When his father died, his grief and emaciation far exceeded mourning rituals.

Rescuing Chancellor Song Shenxi and Defending Dynastic Propriety

Following his mourning period, Chancellor Li Fengji invited Wei Wen to his regional headquarters in Wuchang. Before Wei Wen reached the command, Emperor Wenzong summoned him directly to court as Right Reminder. At the time, arrogant eunuch commander Wang Shoucheng dominated the palace. When Chancellor Song Shenxi secretly planned to eliminate eunuch influence, Wang Shoucheng and Zheng Zhu pre-emptively accused the chancellor of conspiring with the Prince of Zhang to depose the monarch. Enraged, Emperor Wenzong resolved to exterminate Song Shenxi's lineage, paralyzing civil officials with terror.

Wei Wen strode forward and cried out in court: "Chancellor Song has lived a life of spotless probity. Occupying the supreme ministerial seat, how could he commit treason! This is villainous slander destroying a faithful statesman. As royal remonstrators, how can we fear imperial lightning and leave our sage ruler to bear the shame of murdering an innocent chancellor!" Leading his fellow remonstrators, Wei Wen knelt before the palace gates in desperate protest, securing Song Shenxi's reprieve from execution and reduction to regional exile. Wei Wen's unbending fortitude became renowned throughout the empire.

In 831, torrential rains caused leaks in the ancestral chambers of the Imperial Ancestral Temple. Furious, Emperor Wenzong penalized sacrificial officials and issued decrees dispatching court eunuchs to oversee repair artisans. Wei Wen submitted an unsparing remonstrance, arguing that administrative competence secured imperial order and observing traditional statutes maintained sovereign majesty. He stressed that honoring the ancestral altars was the most sacred of state duties; leaving negligent officials lightly fined while delegating temple repairs to inner eunuchs privatized dynastic shrines and authorized bureaucratic dereliction. Persuaded by his logic, Wenzong cancelled the eunuch commission and commanded external ministries to repair the temple. That same year, when ministers proposed grand titles for the sovereign, Wei Wen argued that flood and drought across Sichuan and the south rendered such vanity inappropriate, leading Wenzong to ban honorary additions throughout his reign.

Rejecting Zheng Zhu and Declining Secretariats

During the Dahe era, cunning favorite Zheng Zhu gained Emperor Wenzong's favor and was appointed Military Commissioner of Fengxiang. Knowing his lowly origin drew the contempt of scholar-officials, Zheng Zhu sought to recruit prestigious aristocrats for his staff, sending lavish gifts to entice Wei Wen to become his deputy. Colleagues cautioned Wei Wen that refusing a royal favorite would invite mortal retribution.

Wei Wen replied with serene wisdom: "In choosing between evils, one must always select the lighter. If I refuse him, the worst consequence is distant banishment; if I join him, future catastrophe will destroy my lineage." Zheng Zhu was thwarted by his defiance. Months later, the Sweet Dew Incident erupted, and Zheng Zhu's entire family was exterminated at Fengxiang, leading the court to marvel at Wei Wen's prophetic foresight.

In 835, seeking to elevate ministers of pure moral virtue, Emperor Wenzong promoted Wei Wen from Vice Director of Merit Assessment to Grand Counselor and summoned him to the Hanlin Academy, intending to make him chancellor. Wei Wen stood outside the Silver Terrace Gate, submitting an impassioned memorial quoting his late father's dying admonition: "Having served in the confidential secretariats, I suffered chronic panic that became incurable; my descendants must never serve in confidential palace posts!" Touched by his filial devotion, Wenzong reassigned him as Secretariat Drafter, but Wei Wen declined with equal firmness, eventually accepting the non-confidential post of Junior Minister of Imperial Sacrifices.

Returning Imperial Decrees and Counsel to the Crown Prince

In 837, Wei Wen was promoted to Supervising Secretary in the Chancellery, concurrently serving as Reader to Crown Prince Li Yong. Regional commander Wang Yanping embezzled military grain, four hundred warhorses, and tens of thousands of armaments in Lingwu, a capital offense. Remembering Wang's father's military merit, Wenzong issued pardons commuting his sentence to minor exile and rapidly transferring him to a pleasant post; concurrently, favored musician Yuchi Zhang was irregularly appointed to a high prefecture.

As Supervising Secretary holding the power of veto, Wei Wen placed dynastic law above personal safety, returning and rejecting the imperial pardons three consecutive times. Despite imperial messengers urging compliance, Wei Wen stood firm, arguing that sovereign law could never bend to private favor, forcing Emperor Wenzong to retract the promotions and uphold judicial integrity.

When the immature Crown Prince Li Yong fell into disfavor through frivolous pastimes, Wenzong assembled the grand council to announce his deposition. While ministers bowed in terrified silence, Wei Wen stepped forward and admonished the monarch: "His Highness is Your Majesty's only son; that he has fallen into error is due to the lack of early moral cultivation by the court and tutors. How can this fault be attributed solely to the youth!" His courageous candor dispelled the emperor's wrath, preserving the prince's status. Soon afterward, he was promoted to Right Assistant Director of the Department of State Affairs.

Principled Independence and Governance in Xuanxi

Presiding over administrative departments, Wei Wen punished corruption without hesitation. When Vice Director Zhang Wengui failed to visit his father during a mutiny, Wei Wen impeached him for unfilial conduct, demoting him to Anzhou; when salt commissioner Yao Xu was recommended for promotion to the prestigious central ministries following judicial successes, Wei Wen strictly upheld the ancient rule reserving ministry directorships for pure civil scholars rather than operational clerks, blocking the transfer despite Chancellor Yang Sifu's intercession. Recognizing his uncompromising integrity, Wenzong admired his character and appointed him Surveillance Commissioner of Shan-Guo.

Following Emperor Wuzong's accession, powerful chancellor Li Deyu admired Wei Wen's reputation and summoned him as Vice Minister of Personnel, seeking to make him chancellor. When scholar Li Han was demoted to Fenzhou over family gossip, Wei Wen calmly urged Li Deyu to investigate the injustice. Li Deyu asked with suspicion if Li Han was his relative, to which Wei Wen replied that they were unrelated, speaking out purely on grounds of long-standing familiarity with his integrity. Displeased by his candor, Li Deyu transferred him to govern Xuanxi, where Wei Wen appointed Li Deyu's literary opponent Zheng Chuhui as his secretary, maintaining absolute detachment from factional favor.

In Xuanxi, Wei Wen governed a populous and heavily taxed region with exemplary frugality, punishing predatory landlords while easing the burdens of the poor. Within a year, his administration achieved peace and prosperity across the southern valleys.

In the fifth month of 845, a severe ulcer broke out on Wei Wen's head. Realizing his life was ending, he summoned his son-in-law Zhang Fulu, calmly arranging his family affairs and asking his close friend Du Mu to compose his epitaph. Recalling a dream from his youth where a heavenly messenger informed him that his earthly tomb would take ten thousand days to complete, Wei Wen noted that exactly ten thousand days had elapsed, declining all medicine. On the fourteenth day of the fifth month, he passed away peacefully at fifty-eight. Emperor Wuzong mourned him deeply, posthumously elevating him to Minister of Works with the honored name Xiao. Poet Du Mu composed his epitaph, praising his steadfast character that neither emperor nor chancellor could ever sway.

Major Achievements

Prostrating before the Throne to Rescue Chancellor Song Shenxi

During the early Taihe era when powerful eunuchs fabricated treason charges against Chancellor Song Shenxi, Wei Wen displayed breathtaking courage as a royal remonstrator. By leading his fellow colleagues in prostrating before the inner palace gates and exposing the slander, he moved Emperor Wenzong to rescind the death penalty, dealing a blow to eunuch tyranny and establishing a glorious benchmark of moral courage in Tang remonstrance history.

Invalidating Eunuch Incursions into Ancestral Shrine Repairs

In 831, when Emperor Wenzong bypassed the civilian Ministry of Works to commission palace eunuchs to oversee repairs on the Imperial Ancestral Temple, Wei Wen intervened with legal and ritual arguments. Demonstrating that dynastic altars belonged to the state rather than the emperor's private household, he halted eunuch encroachment into external civil departments and preserved the authority of the Three Departments and Six Ministries administration.

Vetoing Imperial Decrees to Maintain Judicial and Bureaucratic Purity

Serving as Supervising Secretary and Right Assistant Director, Wei Wen exercised the constitutional power of imperial veto to its highest potential. Resisting sovereign pressure, he returned and blocked improper imperial pardons for corrupt commander Wang Yanping and court musicians three times. In regulating civil service appointments, he strictly upheld meritocratic distinctions, forming an unyielding barrier against imperial favoritism.

Preserving Moral Independence above the Niu-Li Factional Strife

Amidst decades of bitter political warfare during the Niu-Li Factional Strife, Wei Wen embodied the rarest ideal of intellectual independence. While maintaining personal ties with Niu faction leaders, he earned the sincere reverence of Li faction leader Li Deyu. He courageously pleaded for the persecuted Li Han while urging his friends to employ Li Deyu to end factional vendettas. His principled refusal of Zheng Zhu's enticements cemented his reputation across generations as an upright gentleman.

Personal Relationships

  • Grandfather: Wei Zhao, Vice Minister of Personnel and Grand Commandant under Emperors Daizong and Dezong.
  • Father: Wei Shou, Right Policy Advisor and Hanlin Academician, honored as Grand Preceptor.
  • Spouse: Lady Li of Longxi, daughter of Imperial Reader Li Song, passed away four years prior to Wei Wen.
  • Daughter: Lady Wei, accomplished woman of letters, married Xue Meng and authored twelve chapters continuing the Admonitions for Women.
  • Son-in-law: Zhang Fulu, jinshi scholar and court official, entrusted by Wei Wen on his deathbed.
  • Epitaph Author: Du Mu, renowned late Tang poet and Governor of Chizhou, commissioned by Wei Wen to compose his epitaph.
  • Rescued Chancellor: Song Shenxi, Chancellor of Tang, saved from execution through Wei Wen's palace prostration.
  • Admirer and Chancellor: Li Deyu, prominent Tang chancellor, revered Wei Wen's impartiality and sought to promote him to chancellor.
  • Chancellor Friend: Yang Sifu, Chancellor of Tang and Niu faction leader, close friend of Wei Wen.
  • Chancellor Friend: Li Jue, Chancellor of Tang and Niu faction leader, close friend of Wei Wen.
  • Rejected Rebel: Zheng Zhu, Military Commissioner of Fengxiang, whose lucrative invitations Wei Wen adamantly refused.

Historical Evaluations

  • Emperor Wenzong of Tang: Wei Wen was loyal, outspoken, and saved his generation, upholding the law without compromise; we deeply admire his moral fortitude.
  • Li Deyu: This man is steadfast, upright, and independent—truly a gentleman of supreme integrity!
  • Du Mu in Epitaph of Lord Wei: In his youth he never indulged in frivolity, entering adulthood with consummate gravity. Serving as a minister in the imperial courts, senior grandees approached him as if standing over a fathomless abyss, carefully weighing words and deeds before speaking. What he deemed improper, once his brush touched paper and his words were spoken, neither sovereign nor chancellor could ever sway him!
  • Old Book of Tang: Wei Wen possessed an uncompromising spirit and few intimate companions, yet his outspoken loyalty addressed the vital crises of the empire. Governing central departments, he stood steadfast without faltering—truly an unshakeable pillar of the state.
  • New Book of Tang: Wei Wen was devoted to filial piety and fraternal harmony, possessing the austere purity of the ancients. Standing erect in court, his remonstrances feared no royal thunder, remaining independent of factional strife with a noble spirit matching heaven and earth!

Related Entries

  • Niu-Li Factional Strife
  • Li Deyu
  • Song Shenxi
  • Emperor Wenzong of Tang
  • Du Mu
  • Sweet Dew Incident

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • Old Book of Tang, Volume 168, Biography 118, Biography of Wei Wen
  • New Book of Tang, Volume 169, Biography 94, Biography of Wei Wen
  • Zizhi Tongjian, Volume 244, Tang Record 60
  • Zizhi Tongjian, Volume 246, Tang Record 62
  • Fanchuan Collection, Volume 6, Epitaph of Lord Wei, Surveillance Commissioner of Xuanzhou and Censor-in-chief, by Du Mu