Tang Dynasty9 min readSeptember 28, 2026

Real Di Renjie vs Judge Dee: History Behind China's Sherlock

Pinyin: Dí Rénjié vs. Dí Gōng'àn(Dee Ren-jyeh vs. Dee Gong-ahn (Judge Dee's Cases))Also: Judge Dee · Detective Dee · Di Renjie · Robert van Gulik · Dee Goong An · Celebrated Cases of Judge Dee · The Chinese Maze Murders · 狄仁杰 · 神探狄仁杰 · 狄公案

How a Dutch diplomat's detective novels and Tsui Hark's blockbusters transformed a Tang dynasty statesman into 'China's Sherlock Holmes'—and what the historical record actually says.

Supreme Court Justice (Mid)
Mid-Career Prime
Tang Dynasty · 唐代 · 武周名相630 – 700⚡ Parallel: Sherlock Holmes & Sir Thomas More

Di Renjie (狄仁杰 · Dí Rénjié)

字怀英 · 追赠梁国公

The legendary Judge Dee who resolved 17,000 cases without injustice and steered Empress Wu Zetian's court to restore the Tang Dynasty.

断狱一万七千无一冤者,名扬四海的神探宰相;在武则天朝堂力挽狂澜,以惊世智慧促成李唐神龙中兴。

Judge Dee, the incisive Tang dynasty detective of Robert van Gulik's beloved mysteries and Tsui Hark's Detective Dee blockbusters, is world-famous. But was he real? Yes—though the truth is stranger than the fiction. The historical Judge Dee, Di Renjie (630–700 CE), never battled phantom flames or haunted monasteries. He was a judge who cleared backlog cases involving 17,000 people in a single year without one recorded appeal of injustice, a statesman who escaped Empress Wu's torture chambers with a blood-letter sewn into his coat, and the chancellor who quietly restored the Tang dynasty.

“神探狄公”(Judge Dee)因荷兰汉学家高罗佩的推理小说与徐克《狄仁杰》系列电影而风靡西方。但历史上真有此人吗?答案是肯定的——而真实历史比小说更传奇。狄仁杰(630–700)从未在闹鬼的寺院或通天浮屠里破案,他是一年断滞狱一万七千人而无冤诉的大理寺丞,是从酷吏死牢中以棉衣血书鸣冤的宰相,也是力促女皇还政李唐的大唐国老。

Key Takeaways · 核心速览 (In 30 Seconds)
  • ✓A Real Judge Dee: The fictional detective is loosely based on Di Renjie (630–700 CE), a genuine Tang dynasty judge and statesman documented in the official Old Book of Tang.
  • ✓The 17,000 Figure, Correctly Stated: As Dali Court judge, Di Renjie cleared backlog cases involving 17,000 people in one year with 'no one claiming injustice' (周岁断滞狱一万七千人,无冤诉者)—it is a count of people in resolved cases, not 17,000 separate murder investigations.
  • ✓The Novelist Behind the Myth: Dutch diplomat-sinologist Robert van Gulik (1910–1967) translated the Qing gong'an novel Wu Zetian Si Da Qi An in 1949, then wrote his own Judge Dee mysteries from the 1950s onward—creating 'China's Sherlock Holmes' for Western readers.
  • ✓Survivor, Not Just Sleuth: The real Di Renjie outlived the inquisitor Lai Junchen's secret police with a blood-written appeal hidden in his coat lining, then persuaded Empress Wu Zetian to restore her son Li Xian as heir—saving the Tang dynasty without a civil war.

From the Dali Court to Western Bestseller Lists: How Judge Dee Was Born

The global cult of Judge Dee began not in China but in Tokyo, with a Dutch polymath named Robert van Gulik (1910–1967). A career diplomat for the Netherlands, van Gulik was also a serious sinologist: a published scholar of Chinese jurisprudence and culture, an accomplished guqin (Chinese zither) player, a calligrapher, and an illustrator in the Ming woodblock style. While serving in the Dutch embassy in wartime Tokyo, he married Shui Shifang (水世芳), a Chinese woman from a scholarly official family—a partnership that deepened his immersion in classical Chinese letters.

“狄公”的全球传奇并非始于中国,而是始于东京的荷兰全才外交官高罗佩(Robert van Gulik, 1910–1967)。他既是荷兰职业外交官,又是严肃的汉学家:研究中国古代司法文化,善操古琴,精于书法,还会仿明版画风格亲手为小说绘图。战时驻东京期间,他与出身士宦世家的中国女子水世芳结缡,这段婚姻更让他深植于中国古典文化。

In 1949, van Gulik published an English translation of an anonymous early-Qing gong'an (court-case) novel, Wu Zetian Si Da Qi An (《武则天四大奇案》, roughly 'Four Great Cases of the Empress Wu'), translating its first thirty chapters as Dee Goong An—later republished as Celebrated Cases of Judge Dee. The novel's resourceful magistrate-hero was a fictionalized Di Renjie, already a folk legend from Song and Yuan popular storytelling. Van Gulik admired the hero but found the later chapters crude, so he made a decision that would reshape detective literature: he would write new cases of his own.

1949 年,高罗佩英译清初无名氏公案小说《武则天四大奇案》前三十回为 Dee Goong An(后以 Celebrated Cases of Judge Dee 再版)。小说主角正是自宋元话本以来被民间神化的狄仁杰。高罗佩钟爱这位主人公,却认为原书后半部笔法粗陋,于是做出一个改写推理文学史的决定:亲自为狄公创作全新的探案故事。

Beginning in the 1950s, van Gulik authored his original Judge Dee mysteries in English—starting with titles such as The Chinese Bell Murders and The Chinese Maze Murders—eventually producing more than a dozen novels and story collections, complete with his own Chinese-style illustrations. The Judge Dee mysteries became fixtures of the Western crime shelf: here was a detective who presided over a magistrate's court, consulted Tang legal codes, interrogated witnesses, and untangled three interlocking cases at once. Readers and reviewers crowned him 'the Chinese Sherlock Holmes,' and the nickname stuck. Later, Tsui Hark's blockbuster films—Detective Dee and the Mystery of the Phantom Flame (2010) and its sequels (2013, 2018), plus China's long-running Amazing Detective Di Renjie TV series—amplified the detective-Dee myth into a full transpacific franchise.

自 1950 年代起,高罗佩以英文原创“狄公案”系列——首作《中国钟案》(The Chinese Bell Murders)、《中国迷宫案》(The Chinese Maze Murders)等相继问世,前后共十余部长篇与短篇集,并亲自绘制中国风格插图。狄公系列风靡欧美推理界:一位坐衙断案、熟谙唐律、同时侦破三桩疑案的儒官神探,被西方读者与书评人冠以“中国福尔摩斯”之名。此后,徐克电影《狄仁杰之通天帝国》(2010)及续作(2013、2018)与国产长青剧《神探狄仁杰》将这一 IP 进一步推向全球。

Milestones in the making of the fictional Judge Dee:

  • ◆1949 — Van Gulik translates the Qing gong'an novel Wu Zetian Si Da Qi An as Dee Goong An (Celebrated Cases of Judge Dee), introducing the character to Western readers.1949 年——高罗佩英译清初公案小说《武则天四大奇案》为 Dee Goong An(Celebrated Cases of Judge Dee),狄公形象进入西方视野。
  • ◆1950s onward — Van Gulik writes his own Judge Dee mysteries (The Chinese Bell Murders, The Chinese Maze Murders, The Haunted Monastery, and more), self-illustrated in Ming woodblock style.1950 年代起——高罗佩自创狄公案系列(《中国钟案》《中国迷宫案》《迷宫案》等十余部),并亲手绘制明代版画风格插图。
  • ◆1965–1967 — Van Gulik serves as Dutch ambassador to Japan while completing the final Judge Dee novels before his death in 1967.1965–1967 年——高罗佩出任荷兰驻日大使,并在 1967 年逝世前完成狄公案系列最后几部作品。
  • ◆2010–2018 — Tsui Hark's Detective Dee film trilogy turns the judge into a wuxia action hero, grossing worldwide and igniting a new wave of 'Detective Dee history' searches.2010–2018 年——徐克《狄仁杰》三部曲将狄公重塑为武侠动作英雄,席卷全球票房,掀起'Detective Dee 历史真相'的搜索热潮。

The Real Di Renjie's Court Record: 17,000 People, Zero Claims of Injustice

Strip away the fiction, and the historical record is still remarkable. Di Renjie (630–700 CE), courtesy name Huaiying, was born in Taiyuan into a family of scholar-officials. In 676 CE he was appointed Dali Cheng—Assistant Minister of the Grand Court of Judicial Review (the Dali Temple), the empire's supreme judicial organ in Chang'an. The office was drowning in accumulated dossiers. According to the Old Book of Tang, within a single year Di Renjie adjudicated the backlog cases involving seventeen thousand people—and not one person filed a claim of injustice.

剥离虚构,真实史料依然惊人。狄仁杰(630–700),字怀英,太原人,出身士宦之家。上元三年(676 年)他出任大理寺丞——帝国最高司法机构大理寺的属官。彼时衙署积案如山,据《旧唐书》记载,狄仁杰仅用一年便断决积压案件所涉一万七千人,无一人称冤。

Masterpiece Scroll · 千古名句

仪凤中为大理丞,周岁断滞狱一万七千人,无冤诉者。

Yífēng zhōng wèi dàlǐ chéng, zhōu suì duàn zhì yù yī wàn qī qiān rén, wú yuān sù zhě.

During the Yifeng era he served as Dali Cheng; within one full year he adjudicated the backlog cases of seventeen thousand people, and none claimed injustice.

Context · The exact wording of the Old Book of Tang (Jiu Tang Shu), the official dynastic history that is the primary source for the real Di Renjie's judicial career.

That sentence deserves careful reading, because the internet routinely inflates it. The real Di Renjie did not 'solve 17,000 murder mysteries in one year'—no human could. The record says he cleared stagnated cases (滞狱, zhi yu) involving 17,000 individuals: a mass judicial review in which each verdict, sentence, and appeal was processed with such rigor that not a single complaint of a wrongful verdict is recorded. It is a testament to administrative mastery and statutory precision—the real-life craft of a Tang dynasty judge—rather than the single-handed deduction of a fictional sleuth.

这句话需要严谨解读,因为网络上常将其夸大。真实的狄仁杰并非“一年侦破一万七千起谋杀悬案”——任何人都做不到。史载的“断滞狱一万七千人”是指他清理积压案件所涉及的一万七千名当事人:这是一场大规模司法审理,每份判决都经得起推敲,以至于无一人喊冤。这体现的是行政掌控力与律法精熟——一位唐代法官的真实功力,而非虚构神探的单枪匹马推理。

A Statesman in the Inquisitors' Night: The Story the Novels Rarely Tell

Van Gulik's novels give Judge Dee a colorful rogues' gallery: murderous monks, smugglers, and scheming magistrates. The real Di Renjie's deadliest opponents were far more frightening—the imperial secret police of Empress Wu Zetian's Wu Zhou court. Her inquisitor-in-chief, Lai Junchen, ran a machinery of fabricated treason cases; he is traditionally credited with the Luozhi Jing, a chilling manual on how to frame the innocent, and with the notorious banquet trick 'please step into the urn' (请君入瓮), by which he trapped a fellow torturer into confessing. Thousands of officials perished in these purges.

高罗佩笔下狄公的对手是凶僧、走私犯与贪官,而真实狄仁杰最凶险的敌人恐怖得多——武则天武周朝廷的酷吏集团。来俊臣罗织构陷、无恶不作,相传著有罗织构陷的教科书《罗织经》,并以“请君入瓮”的鸿门宴逼服同为酷吏的周兴。数以千计的朝臣惨死在这场清洗之中。

In 692 CE, Lai Junchen accused the newly appointed Grand Chancellor Di Renjie of treason. Knowing that suspects who resisted torture were beaten to death before ever reaching the throne, Di exploited an imperial decree that commuted the death sentence of anyone who confessed to rebellion upon first questioning. He signed a perfunctory admission—then, in his cell, tore the silk border from his bedclothes, wrote his true appeal, and sewed it into the lining of a padded winter coat. He asked a jailer to deliver the coat to his son, Di Guangyuan, ostensibly to be washed for the season. The son found the hidden petition, ran to the palace gates, and presented it to Empress Wu herself.

天授三年(692 年),来俊臣诬告新拜宰相的狄仁杰谋反。狄仁杰深知负冤硬抗者必死于杖下、永无面圣之机,遂利用“一问即承反者例得减死”的敕令,当即佯供认罪。随后他在狱中撕下被头帛绢,写下冤状,密缝于冬衣夹层,托狱卒以换洗为名送交其子狄光远。狄光远拆衣得书,径直叩阙,将冤状直呈武则天。

Summoned to face the Empress, Di Renjie dismantled the fabricated case, and Lai Junchen's plot collapsed. Spared but demoted to county magistrate of Pengze, Di returned to power as the Empress's most trusted minister—she honored him as 'Elder of the State' (国老, Guolao). His crowning act was not detective work at all but statecraft: with one famous argument about mother-and-son versus aunt-and-nephew bonds, he persuaded Empress Wu to recall her son Li Xian (the deposed Luling Prince) and reinstate him as heir. When Di Renjie died in 700 CE, the peaceful restoration of the Tang dynasty he had engineered was already secured. This is the real Detective Dee history behind the legend—a record of institutional courage that fiction has rarely matched.

武则天亲自召见对质,狄仁杰当廷洗冤,来俊臣构陷彻底败露。他免死贬为彭泽县令,后重回权力中枢,被女皇尊称“国老”。而他一生最伟大的手笔并非断案,而是国政:以“姑侄与母子孰亲”的千古一问,说动武则天召回庐陵王李显复立为皇储。狄仁杰于久视元年(700 年)病逝时,他一手擘画的李唐和平复国大局已定。这才是“神探”背后的真实历史——一份虚构文学都难以企及的制度性勇气档案。

Fictional Judge Dee vs. The Real Di Renjie: Head-to-Head

Perspective 视角Fictional Judge DeeThe Real Di Renjie
Historical BasisA literary detective invented by Robert van Gulik, loosely modeled on Di Renjie and the Qing gong'an traditionA documented Tang dynasty official (630–700 CE) recorded in the Old and New Books of Tang
Rank & Daily WorkA single district magistrate in provincial towns like Peng-lai, handling local murders with assistants such as Sergeant HoongDali Court judge in the capital, four-time provincial governor, and twice Grand Chancellor of the empire
The Famous CaseloadUntangles three interlocking murder mysteries simultaneously in each novelCleared backlog cases involving 17,000 people in one year at the Dali Court—no internet myth inflation required
MethodUndercover disguises, courtroom theatrics, ghostly clues later debunked by reasonStatutory rigor, mass case review, and incorruptible administration—no disguises in the historical record
Supernatural ElementsHaunted monasteries, cursed bells, and talking ghosts enliven the plots (usually explained away)None; his real battles were with corrupt officials, trigger-happy generals, and the secret police
Deadliest AdversaryMurderers, smugglers, and corrupt abbotsInquisitor Lai Junchen and the Wu Zhou terror apparatus—and the succession politics of a dynasty in crisis
On Screen (Tsui Hark, 2010–2018)A kung-fu detective leaping through burning pagodas and sea-dragon fleets—pure cinematic fantasyNo evidence Di Renjie ever fought a single assassin in mid-air; his weapons were legal codes and memorials
Greatest AchievementSolving the triple mystery of a fictional districtPersuading Empress Wu Zetian to restore her son Li Xian as heir, saving the Tang dynasty without civil war

The comparison exposes a quiet irony: the more successful the fictional Judge Dee became, the more he eclipsed the man behind him. Millions know the pipe-smoking magistrate of the Judge Dee mysteries or the wuxia hero of the Detective Dee films, yet have never heard of the real Di Renjie—the chancellor who stared down inquisitors and re-founded a dynasty. Van Gulik himself was careful: he openly warned readers that his novels were entertainment, freely rearranging Tang history for narrative effect. The trouble is not the fiction—it is forgetting that it is fiction.

对比之下藏着一个安静的悖论:虚构的狄公越是成功,越遮蔽了其原型。无数人读过“狄公案”小说里叼着烟斗的县令、看过电影里飞天遁地的武侠神探,却从未听说真实的狄仁杰——那位直面酷吏、再造社稷的宰相。高罗佩本人倒是坦荡:他明言小说为娱乐之作,为叙事效果自由重组唐代历史。真正的问题不在虚构本身,而在于遗忘了那是虚构。

Interactive Experience

Stand Where History Outwitted Fiction: The Luoyang Dungeon, 692 CE

Open Station 7 on the interactive map—Luoyang Prison and Phoenix Terrace, where the real Di Renjie, framed by the secret police, sewed a blood-written appeal into his winter coat and won his freedom before the Empress herself.

Explore the Luoyang Blood-Letter Station

Frequently Asked Questions (People Also Ask)

Was Judge Dee a real person?

Yes—partly. The fictional Judge Dee of the Judge Dee mysteries is based on a real Tang dynasty official, Di Renjie (630–700 CE), who served as a Dali Court judge and twice as Grand Chancellor under Empress Wu Zetian. However, the pipe-smoking, disguise-wearing detective of Robert van Gulik's novels and Tsui Hark's films is a literary invention that freely departs from the historical record.

Who wrote the Judge Dee mysteries?

Robert van Gulik (1910–1967), a Dutch diplomat and sinologist. He first translated the early-Qing Chinese gong'an novel Wu Zetian Si Da Qi An as Dee Goong An (Celebrated Cases of Judge Dee) in 1949, then wrote his own original Judge Dee novels in English from the 1950s onward, including The Chinese Bell Murders and The Chinese Maze Murders.

Is the movie Detective Dee based on a true story?

No. Tsui Hark's Detective Dee films (2010–2018) use the real statesman Di Renjie as a protagonist, but their plots—spontaneous human combustion beside a giant Buddha, sea-dragon fleets, and wuxia battles atop burning towers—are entirely fictional. Detective Dee history and cinema diverge sharply: the real man fought with legal codes and memorials, not martial arts.

Did Di Renjie really solve 17,000 cases in one year?

Not in the way memes claim. The Old Book of Tang states that as Dali Cheng he adjudicated backlog cases involving 17,000 people in a single year, with no one claiming injustice (无冤诉者). This was a mass judicial review of accumulated dossiers involving 17,000 individuals—not 17,000 separate murder investigations cracked by one detective.

How did the real Di Renjie escape the secret police?

In 692 CE, framed for treason by inquisitor Lai Junchen, Di Renjie feigned confession under an imperial decree that spared confessed 'rebels' from death. He then wrote his true appeal on silk, sewed it into the lining of his winter coat, and had it delivered to his son Di Guangyuan, who presented it to Empress Wu Zetian. The Empress verified the plot, and the death sentence was lifted.

Why is Di Renjie called 'the Chinese Sherlock Holmes'?

Western readers and reviewers gave the title to van Gulik's fictional Judge Dee, whose methodical observation and courtroom deduction echo Sherlock Holmes. Unlike Holmes, however, the real Di Renjie was not a private consultant but a powerful magistrate, judge, and chancellor—his genius ran as much through statecraft and institutional justice as through case-solving.

Interactive Spatio-Temporal Experience · 时空行走

Walk with Di Renjie Across China

随狄仁杰漫步华夏河山 · 亲历命运逆境与精神涅槃

🗺️ 10 Real GIS Historical Landmarks🎙️ 4-Voice Studio Audio Narration📈 Spatial Psychological Resilience Curve

Sources & Editorial Note · 资料来源说明

Historical facts, dates, and citations in this article follow the figure research files of China Culture Media and widely accepted references (e.g., Wikipedia and Britannica entries on Di Renjie). Bilingual translations are prepared for learning purposes. (文中史实以中国传统文化权威公开资料为据, 双语对照译文仅供学习交流。)