徐有功
Historical photograph of Xu Yougong
Image creditsTuodvinao TK · CC BY-SA 4.0Image source

Historical figure

Xu Yougong (徐有功)

徐有功

Xu Yougong (徐有功, 640–702), original name Hongmin, known by his courtesy name Yougong, was a native of Yanshi County, Luozhou (present-day Yanshi, Henan), with ancestral roots in Tancheng County, Donghai Commandery. Born into an illustrious scholarly lineage, he was the great-grandson of Xu Che, Imperial Son-in-law of the Southern Liang Dynasty, and the grandson of Xu Wenyuan, the celebrated classical master and State Son…

Era not stated

PROFILE

Xu Yougong (徐有功, 640–702), original name Hongmin, known by his courtesy name Yougong, was a native of Yanshi County, Luozhou (present-day Yanshi, Henan), with ancestral roots in Tancheng County, Donghai Commandery. Born into an illustrious scholarly lineage, he was the great-grandson of Xu Che, Imperial Son-in-law of the Southern Liang Dynasty, and the grandson of Xu Wenyuan, the celebrated classical master and State Son Doctor of the early Tang Dynasty. Entering officialdom via the Mingjing examination, Xu Yougong served as Judicial Administrator of Puzhou, Assistant Minister of the Court of Judicial Review, Director in the Ministry of Justice, Investigating Censor of the Left Censorate, Junior Chief Minister of the Court of Judicial Review, and Junior Supervisor of the Court of the Imperial Stud, standing as the supreme judicial exemplar and defender of statutory justice during the reign of Wu Zetian. While serving as Judicial Administrator of Puzhou, Xu Yougong practiced compassionate and moral administration, educating offenders through classical virtue rather than torture or physical punishment. Throughout his three-year tenure, he never once ordered the corporal punishment of caning, earning the universal love of officials and civilians, who affectionately hailed him as Xu of No Floggings. Following the accession of Empress Wu Zetian and the founding of the Wu Zhou Dynasty, the court employed notorious cruel officials such as Zhou Xing, Lai Junchen, and Suo Yuanli to manufacture widespread treason trials, plunging the empire into terror. Elevating to the imperial high courts, Xu Yougong risked his life to defend the rule of law. In celebrated cases such as the Yan Yuqing treason trial, the Li Renbao brothers case, and the Lady Pang witchcraft prosecution, Xu Yougong boldly confronted Wu Zetian and her inquisitors, overturning hundreds of fabricated charges and preserving thousands of innocent lives. Throughout his fifteen-year judicial career, Xu Yougong stood unflinching in defense of statutory rectitude. He was thrice condemned to death by corrupt inquisitors, escaped execution once at the very foot of the scaffold, and was twice stripped of noble title and official rank. Yet he never altered his moral principles, facing execution with calm serenity and refusing to flatter the sovereign when pardoned. Empress Wu Zetian deeply respected his incorruptible adherence to law, which gradually curbed the excesses of the secret police. Xu Yougong passed away in office in the second year of the Chang'an era (702) at the age of sixty-three. Emperor Zhongzong posthumously honored him as Chief Minister of the Court of Judicial Review, and Emperor Wuzong bestowed the posthumous name Zhongzheng, cementing his legacy as the greatest upright judge in Chinese history.

Courtesy Name
Yougong (有功, original name Hongmin 宏敏)
Posthumous Name
Zhongzheng (中正)
Ancestral Home
Yanshi County, Luozhou (present-day Yanshi, Henan)
Date of Birth
640 (Fourteenth year of the Zhenguan era of Tang)
Date of Death
702 (Second year of the Chang'an era of Wu Zhou)
Age at Death
63
Highest Office
Junior Supervisor of the Court of the Imperial Stud, Junior Chief Minister of the Court of Judicial Review (Posthumously granted Chief Minister of the Court of Judicial Review)
Major Offices
Judicial Administrator of Puzhou, Assistant Minister of the Court of Judicial Review, Director in the Ministry of Justice, Investigating Censor of the Left Censorate
Noble Title
Baron of Dongguan County (东莞县男, inherited)
Accurate Identity
Celebrated jurist, magistrate, legal scholar, and the incorruptible "Xu of No Floggings" during the Tang Dynasty and Wu Zhou periods

LIFE TIMELINE

Birth into Scholarly Lineage

Born into an illustrious scholarly family in Yanshi; grandson of classical master Xu Wenyuan.

Passing Imperial Examinations

Passed the Mingjing examination, inherited the title Baron of Dongguan County, and studied dynastic statutes.

The Judge of No Floggings

Appointed Judicial Administrator of Puzhou; governed through moral instruction without once using corporal punishment.

High Court Judicial Office

Elevated to Assistant Minister of the Court of Judicial Review as cruel officials unleashed political terror across the capital.

Confronting the Empress on the Yan Case

Defended Yan Yuqing in open court against Lai Junchen, establishing statutory distinctions between ringleaders and coerced followers.

Framing and Demotion by Zhou Xing

Condemned to death after exposing Zhou Xing's fabrications in the Li Renbao trial; spared execution by Wu Zetian and dismissed to commoner status.

Restored to the Censorate

Reappointed Investigating Censor of the Left Censorate amid public rejoicing; submitted treatises critiquing bureaucratic and judicial abuses.

Serenity on the Scaffold

Defended Lady Pang against witchcraft accusations; sentenced to execution by inquisitors, faced the scaffold calmly before receiving an eleventh-hour reprieve.

Reappointment as High Judge

Reappointed Junior Chief Minister of the Court of Judicial Review following the fall of Lai Junchen, eliminating false convictions across the realm.

Passing Away in Office

Died of exhaustion while serving as Junior Supervisor of the Court of the Imperial Stud at age sixty-three; posthumously conferred the post of Chief Minister of the Court of Judicial Review in 705 and the posthumous name Zhongzheng in 845.

Relationship graph

BIOGRAPHY

Biography

Classical Heritage and the Legend of No Floggings

Xu Yougong hailed from a distinguished cultural and aristocratic lineage originally based in Tancheng, Donghai Commandery, before settling in Yanshi, Luozhou. His great-grandfather, Xu Che, was an Imperial Son-in-law and Palace Secretarial Drafter in the Southern Liang Dynasty, married to Princess Anchang, daughter of Emperor Yuan of Liang. His grandfather, Xu Wenyuan, was one of the foremost Confucian polymaths of the Sui and early Tang dynasties, serving as State Son Doctor, teaching the Zuo Tradition of the Spring and Autumn Annals to early Tang founding generals, and receiving the peerage Baron of Dongguan County. Growing up in this scholarly environment, Xu Yougong mastered the Confucian classics and imperial statutes, absorbing the core philosophies of benevolent governance.

During the Qianfeng era of Emperor Gaozong, Xu Yougong entered officialdom after passing the Mingjing examination, inheriting the hereditary noble title Baron of Dongguan County. Following service in lower provincial posts, he was appointed Judicial Administrator of Puzhou, exercising supreme responsibility over the prefecture's penal administration and legal proceedings. In imperial local administration, judicial officers routinely relied upon torture, ankle-crushers, and heavy floggings to extract confessions. However, Xu Yougong embraced the Confucian ideal of reforming offenders through moral persuasion. Whenever cases were brought before his bench, he patiently instructed the disputants in filial ethics and neighborly harmony, encouraging sincere repentance rather than imposing corporal retribution.

Under his benevolent administration, litigation collapsed throughout Puzhou, civil morals improved dramatically, and commoners celebrated his clemency by calling him Xu of No Floggings. Throughout his entire three-year term, he never inflicted caning upon a single individual, yet crime was eradicated. His renown as an upright and compassionate magistrate spread across the Guanzhong region, coming to the direct attention of the central government in Luoyang and Changan.

High Court Principles and Defending Yan Yuqing

In the first year of the Yongchang era (689), Empress Dowager Wu consolidated autocratic power, establishing the Wu Zhou Dynasty and assuming the title of Holy and Divine Sovereign. To suppress dynastic opposition from Tang royal princes and loyalist ministers, Wu Zetian unleashed notorious cruel inquisitors such as Zhou Xing, Lai Junchen, and Suo Yuanli. These inquisitors deployed public accusation bronze urns and terrifying torture instruments, fabricating treasonous conspiracies and massacring thousands of innocent courtiers. Most judicial officers yielded to the terror, approving false confessions to ensure self-preservation.

Amid this crisis, Xu Yougong was summoned to the imperial capital and appointed Assistant Minister of the Court of Judicial Review, the highest imperial court of trial. In 690, an informant named Feng Jingtong accused Yan Yuqing, County Defender of Guixiang in Weizhou, of conspiring in the rebellion of Prince Li Chong of Yue. Inquisitor Lai Junchen subjected Yan Yuqing to horrific torture, declaring him a primary ringleader and recommending immediate execution by hanging. Wu Zetian approved the death sentence. However, when reviewing the dossier, Xu Yougong refused to endorse the execution, formally rejecting the imperial decree.

Xu Yougong argued that the imperial general amnesty expressly pardoned all individuals who had been coerced into logistical communications with Prince Li Chong, exempting only primary ringleaders. Yan Yuqing had merely processed transport grain and collected civil debts without participating in armed rebellion. An enraged Wu Zetian challenged Xu Yougong before the entire court: "You claim he is not a ringleader; then tell me, what defines a ringleader?" Xu Yougong replied calmly: "A ringleader is like a commander-in-chief, the prime instigator of treason! History has never witnessed a commander-in-chief leading an assault who was ordered about by subordinates to collect private debts! If Your Majesty ignores your own amnesty to execute Yan Yuqing, the sovereign will break faith with the entire realm!" Wu Zetian was left speechless, and the death penalty was rescinded, sparing Yan Yuqing's life.

Standing Against Zhou Xing and Facing Disgrace

During his three years in the Court of Judicial Review, Xu Yougong adhered strictly to the statutes, overturning hundreds of fabricated charges and rescuing thousands of innocent subjects. Upon completing his term, he was transferred to the Ministry of Justice as Director, overseeing the final appellate review of all capital and exile sentences throughout the empire. However, his uncompromising integrity infuriated the inquisitors, who viewed him as an intolerable barrier to their political advancement.

In 691, Daozhou Prefect Li Renbao and his brother Li Rentong were falsely accused of treason by political rivals. Inquisitor Zhou Xing presided over the trial, sentencing the brothers to decapitation and demanding the extermination of their entire clan. Reviewing the trial records in the Ministry of Justice, Xu Yougong discovered that the alleged treasonous correspondence consisted merely of routine family inquiries extracted under searing branding irons, without any subversive content. Xu Yougong submitted three formal memorials refusing to ratify the executions.

Zhou Xing was infuriated by this defiance. Relying on imperial favor, Zhou Xing drafted a confidential memorial accusing Xu Yougong of harboring treasonous sympathies and deceiving the throne, demanding that Xu Yougong be executed in the public market alongside the defendants. Although Wu Zetian was displeased by Xu Yougong's resistance, she recognized his complete personal incorruptibility. Overruling Zhou Xing's demand for execution, she stripped Xu Yougong of all titles and dismissed him to commoner status. Xu Yougong accepted the decree with absolute serenity, packing his belongings to study in seclusion. Within six months, Zhou Xing was himself trapped by Lai Junchen's legendary pot trap, convicted of treason, and slain while en route to exile, validating Xu Yougong's moral stance.

The Lady Pang Case and Confronting the Scaffold

Following Zhou Xing's downfall, Wu Zetian recognized the necessity of upright jurists to maintain civil administration. In the second year of the Changshou era (693), she restored Xu Yougong to office as Investigating Censor of the Left Censorate. The common folk of Luoyang and Changan celebrated his return with immense joy. Upon resuming office, Xu Yougong submitted his famous memorial addressing structural flaws in civil personnel and the judicial review system, urging the empress to curtail corrupt appointments, suppress cruel officials, and dismantle the predatory secret police apparatus.

Shortly afterward, a sensational trial erupted involving Lady Pang, a wealthy matriarch from Bozhou. Her son-in-law, Shouchun, seeking to seize the family estate, conspired with Lai Junchen to accuse Lady Pang of performing nighttime witchcraft to curse the empress. Lai Junchen manufactured fabricated confessions and condemned Lady Pang to decapitation. When Lady Pang's young son prostrated himself outside the palace gates weeping for justice, Xu Yougong took charge of the dossier, proved the accusations entirely false, and personally presented her case to Wu Zetian. Enraged by his intervention, Lai Junchen and his fellow inquisitors filed joint treason charges against Xu Yougong, swiftly sentencing him to public beheading.

Stripped of his robes, Xu Yougong was bound and marched through the streets of Luoyang to the execution ground. Crowds of weeping citizens packed the thoroughfares. Standing before the executioners, Xu Yougong remained magnificent in his composure, smiling and chatting cordially with the guards without the slightest trace of fear. Deeply moved, senior statesmen Zhang Jianzhi and Chen Zi'ang risked their lives to petition the throne, affirming Xu Yougong's unblemished loyalty. At the final moment, Wu Zetian issued an imperial reprieve commuting his sentence to banishment in Lingnan, while Lady Pang's death penalty was likewise commuted to exile. Once again, Xu Yougong used his own life to defend the sanctity of the law.

Restoring Justice in the Supreme Court and Final Honor

In the first year of the Shengong era (697), following the public execution of the arch-inquisitor Lai Junchen, the reign of terror finally collapsed. Wu Zetian realized that Xu Yougong was an irreplaceable pillar of dynastic stability, recalling him from exile and elevating him to Junior Chief Minister of the Court of Judicial Review, and subsequently to Junior Supervisor of the Court of the Imperial Stud.

Resuming control over imperial criminal reviews, Xu Yougong maintained the ancient maxim that it is better to err on the side of leniency than condemn the innocent. He reexamined numerous lingering political cases, including that of Su Jianyan, son of former chancellor Su Liangsi. When prosecutor Guo Fengyi demanded hanging, Xu Yougong drafted his celebrated judicial rebuttal, analyzing imperial edicts with flawless logic and successfully preserving the lives of Su Liangsi's sons. Contemporary scholars remarked with reverence: "Now that Xu Yougong presides over justice, there are no wrongfully convicted people under Heaven!"

In the second year of the Chang'an era (702), this legendary jurist who had safeguarded the foundations of Chinese law passed away in office at the age of sixty-three. The entire court and populace plunged into mourning. In 705, upon restoring the Tang Dynasty, Emperor Zhongzong issued an imperial edict commending his unbending virtue and posthumously promoted him to Chief Minister of the Court of Judicial Review. During the Huichang era under Emperor Wuzong, the imperial court bestowed the posthumous name Zhongzheng, enshrining Xu Yougong as an eternal beacon of judicial integrity throughout Chinese legal history.

Major Achievements

Moral Governance and the Renown of Xu of No Floggings

While serving as Judicial Administrator of Puzhou during the late reign of Emperor Gaozong, Xu Yougong revolutionized local judicial administration by repudiating the routine use of corporal punishment and torture. He instituted a system of moral guidance, resolving disputes through ethical instruction and clear statutory explanations. During his three-year administration, he adjudicated hundreds of civil and criminal cases without once administering a beating or caning, causing litigation to cease and inspiring surrounding communities to nickname him Xu of No Floggings, an enduring model of compassionate local magistrate governance.

Court Defense of Yan Yuqing Establishing Statutory Authority

In 690, confronted with Lai Junchen's attempt to execute Yan Yuqing in connection with the rebellion of Prince Li Chong, Xu Yougong mounted a solitary defense of statutory principles before the imperial court. Facing Wu Zetian's severe anger, he articulated the precise legal boundary separating treasonous ringleaders from coerced subordinates, demonstrating that imperial amnesties must be honored as binding state contracts. His successful defense preserved Yan Yuqing's life and established an indispensable legal threshold that prevented absolute authoritarian power from erasing dynastic statutes.

Defying Three Death Sentences to Uphold Public Law

Throughout fifteen perilous years under the reign of Wu Zetian, Xu Yougong was thrice sentenced to death on trumped-up charges by secret police inquisitors, stood on the execution ground awaiting decapitation, and was twice stripped of noble peerage and official rank. Yet he never wavered in his commitment to justice. When colleagues asked how he remained calm amid mortal peril, he delivered his immortal maxim: "What you speak of is private resentment; what I guard is public law. One must never harm public law for private ends!" This principle became the historical bedrock of judicial independence and professional integrity for Chinese magistrates.

Thorough Investigation Saving the Li Renbao Brothers

Presiding over the appellate review of the treason trial of Daozhou Prefect Li Renbao and his brother, Xu Yougong demonstrated peerless forensic diligence and sacrificial courage. Inquisitor Zhou Xing had tortured the brothers into confessing to treason, producing an airtight conviction. Xu Yougong examined the original correspondence, established that the dates preceded the rebellion by months, and proved the evidence was fabricated. Despite being impeached by Zhou Xing and stripped of his rank, Xu Yougong's unwavering refusal to ratify the execution forced an eventual retrial that saved the brothers from the executioner's blade.

Composing the Rebuttal Against the Hanging of Su Jianyan

Serving as Junior Chief Minister of the Court of Judicial Review, Xu Yougong authored his famous rebuttal dismantling prosecutor Guo Fengyi's recommendation to hang Su Jianyan and Su Jianzhong, the sons of former chancellor Su Liangsi. Employing rigorous statutory construction, he demonstrated that imperial clemency pardoning the deceased father from post-mortem desecration logically precluded the capital punishment of his surviving sons. His memorial was acclaimed as a masterpiece of appellate argumentation, successfully saving the dynastic statesmen's lineage from judicial slaughter.

Memorializing on Administrative Abuses and the Informant Urns

Upon his restoration to the Censorate in 693, Xu Yougong submitted his celebrated memorial addressing administrative corruption in the civil service, the proliferation of frivolous official titles, the severity of penal tribunals, and the abuses of the copper accusation urns. He boldly informed Wu Zetian that sovereign micromanagement allowed cruel inquisitors to terrorize the populace while silencing honest counselors. His visionary critique persuaded the empress to dismantle the secret police network, laying the groundwork for the restoration of orderly civil administration during the late Wu Zhou period.

Personal Relationships

  • Great-Grandfather: Xu Che, Southern Liang Dynasty Imperial Son-in-law, married to Princess Anchang, daughter of Emperor Yuan of Liang.
  • Grandfather: Xu Wenyuan, Sui and Tang Dynasty classical master and State Son Doctor, Baron of Dongguan County.
  • Father: Xu Shifan, Tang Dynasty civil official.
  • Son: Xu Lun, Tang Dynasty Secretary of the Heir Apparent, Magistrate of Gongling, and Chief Administrator of the Prince of Shen.
  • Sovereign: Wu Zetian, Holy and Divine Sovereign of Wu Zhou, who resented his frequent contradictions yet deeply revered his legal integrity.
  • Sovereign: Li Xian, Emperor Zhongzong of Tang, who restored the dynasty and posthumously promoted him to Chief Minister of the Court of Judicial Review.
  • Inquisitorial Adversary: Zhou Xing, Wu Zhou Vice Minister of Justice and cruel official, who repeatedly framed Xu Yougong for execution.
  • Inquisitorial Adversary: Lai Junchen, Wu Zhou Vice Censor-in-Chief and chief of cruel officials, who sentenced Xu Yougong to the scaffold.
  • Court Protector: Zhang Jianzhi, Tang Dynasty Chancellor, who led elder statesmen in petitioning the throne to save Xu Yougong from execution.
  • Protected Official: Yan Yuqing, County Defender of Guixiang, rescued from execution by Xu Yougong's courtroom defense.
  • Protected Matriarch: Lady Pang of Bozhou, falsely accused of witchcraft, saved from the death penalty through Xu Yougong's interventions.

Historical Evaluations

  • Wu Zetian: "When Xu Yougong presides over the law, no man dies unjustly; he is truly the supreme impartial magistrate under Heaven!"
  • Emperor Zhongzong of Tang: "Upright ministers have been honored throughout antiquity; posthumous rewards are treasured in imperial statutes. The late Chief Minister of the Court of Judicial Review Xu Yougong possessed chaste and resolute virtue and a luminous, upright spirit, dedicated to ancient ideals as a true worthy of his era."
  • Old Book of Tang, Biography of Xu Yougong: "Throughout his career as a judicial official, Xu Yougong maintained unwavering principles, defying cruel inquisitors at the cost of his life and saving scores of noble families. Contemporaries praised him as possessing no equal among judicial officers since antiquity."
  • New Book of Tang, Biography of Xu Yougong: "Although he repeatedly defied imperial wishes, Empress Wu prided herself on discerning men, valuing Xu Yougong's adherence to law, which gradually curbed the cruel officials. In her era, false treason trials arose every year; without Xu Yougong, the dead would have been countless. Commentators compared him to Zhang Shizhi and Yu Dingguo of Han, considering him their superior."
  • Sima Guang, Comprehensive Mirror for Aid in Governance: "Before the terrifying power of Zhou Xing and Lai Junchen, the entire court held its breath in silence; Xu Yougong alone resisted with his very body, facing death multiple times without regret. He was truly a supreme hero!"

Related Entries

  • Wu Zetian
  • Lai Junchen
  • Zhou Xing
  • Court of Judicial Review
  • Reign of Cruel Officials
  • Trapped in the Pot
  • Zhang Shizhi

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • Old Book of Tang, Volume 85, Biographies 35
  • New Book of Tang, Volume 113, Biographies 38
  • Comprehensive Mirror for Aid in Governance, Volume 204, Tang Annals 20
  • Comprehensive Mirror for Aid in Governance, Volume 205, Tang Annals 21
  • Comprehensive Mirror for Aid in Governance, Volume 206, Tang Annals 22