In the 670s, the courtyard of the Supreme Court in Chang’an was full of files.
The Tang had one court for the whole empire, the Court of Judicature and Revision. At its head sat one chief justice and two deputies. Below them were two senior judges and six assistant judges. Di Renjie was one of those assistants, a sixth rank official with a desk and a share of the country paperwork.
The cases came up from the counties to the prefectures, and from the prefectures to the capital. Whatever moved too slowly simply sat there. Three or five years could pass with a man still in a cell and his file turning yellow.
In those years the backlog stopped being manageable.
The Old Book of Tang gives him one line. In a single year he cleared seventeen thousand people out of the delayed case files, and not one of them appealed the verdict.
The New Book of Tang says the same thing in slightly different words, and adds that people at the time called him fair and forgiving.
Three hundred and sixty days, seventeen thousand people. That is more than forty parties a day, every day, including the days he was ill.
Some modern historians point out that the biographies in both Tang histories drew heavily on tomb inscriptions, which tend to flatter. The number is probably inflated.
What is not in doubt is the reputation. This man decided cases quickly, and the people who came out of his court did not come back angry.
A Cypress Tree
He took one real risk at that desk.
A general of the imperial guard, Quan Shancai, had soldiers who cut down a cypress at the Zhao Mausoleum, the tomb of the emperor who had died a generation earlier. Emperor Gaozong heard of it and ordered the general executed.
Di Renjie sent up a memo. The proper punishment, he wrote, is dismissal.
The emperor repeated the order.
Di Renjie sent a second memo. The proper punishment is not death.
The emperor went red. He cut down a tree at my fathers tomb, he said. He has made me unfilial. He must die.
Everyone in the hall was signalling to Di Renjie to get out.
He did not get out. He talked instead, at length. He had heard, he said, that contradicting a ruler is difficult. He did not think so. Under a tyrant it is difficult. Under a sage it is easy. Since the emperor was a sage, he was not afraid to play the part of the honest minister who gets killed for it.
Then he brought up two precedents. Under Emperor Wen of the Han, a man stole a jade ring from the ancestral temple, and the official Zhang Shizhi argued the case in open court until the sentence was reduced to execution in the marketplace rather than execution of the family. Under Emperor Wen of the Wei, a minister named Xin Pi grabbed the emperors robe to stop a forced resettlement, and was listened to.
His closing line was the one that landed. If your majesty kills a general for one cypress tree, what will people a thousand years from now call you?
The emperors face relaxed. Quan Shancai lived. A few days later Di Renjie was promoted to investigating censor.
The Cloud Over Taihang
He was born in 630, in Taiyuan, in the north.
One story from his childhood opens the Old Book of Tang. A retainer in the household was murdered, and the county officers came to question everyone. The whole household stood up to answer. Di Renjie stayed seated and kept reading.
When the officer told him off, the boy said that the sages were all in his book, and that he had no time for vulgar clerks.
The tale may be decoration. The historians put it first for a reason: this is a man who would not stand up when told to.
He entered government through the less prestigious of the two civil examinations, the one on the classics rather than the one on poetry. His first post was in Bianzhou, where he was falsely accused by a colleague. The minister Yan Liben, on tour as an imperial inspector, met him and apologised to him instead, with a line that became famous. You are a pearl from the edge of the sea, he said, a treasure the southeast had mislaid.
Yan Liben recommended him for a judicial post in Taiyuan.
On the way there he climbed the Taihang mountains and saw a single cloud drifting south. My parents live under that cloud, he told the men with him.
He stood watching until the cloud moved on, and then he went on himself.
In the same office there was a colleague whose mother was old and ill, and who had been assigned to a mission on the far frontier. Di Renjie went to the chief administrator and asked to go in his place. The chief administrator had been feuding with a subordinate for months. After that request the two men looked at each other and said they had no right to quarrel.
None of this is grand. But when he became chancellor he was still doing the same thing, which was standing in front of someone else when the blow came.
In 688 the prince of Yue raised a revolt against Empress Wu in Yu prefecture and lost it in twenty days.
Then came the reckoning. Under the law, six or seven hundred people were sentenced to death for complicity, and five thousand households were to be confiscated and enslaved. The execution order was already moving.
Di Renjie, then prefect of Yu, held the cases and sent a secret memorial. Most of these people, he wrote, were dragged in. He asked for mercy.
The empress issued a special edict. The death sentences were commuted to exile in the far north.
The exiles passed through Ning prefecture, where he had served before. The local elders came out to meet them on the road. You are alive because of our Lord Di, they said.
A crowd of them wept at the stone tablet they had put up for him years earlier.

The Letter in the Coat
In 692, at sixty two, he became chancellor for the first time.
In the first month of that year, the secret police chief Lai Junchen submitted a memorial accusing Di Renjie and six others of treason.
Lai Junchen was the instrument Empress Wu used against her enemies. His court existed to produce confessions. It had one standing offer: confess at the first question, and you will not be executed.
Di Renjie confessed at the first question.
The new Zhou dynasty has overturned everything, he said. I am an old servant of the Tang. Death is what I deserve. The treason is real.
One of the interrogators came to him afterwards with a deal. Name Yang Zhirou as well, he said, and I can get your sentence reduced.
Di Renjie answered that heaven and earth would not permit him to do such a thing, and then slammed his head into a pillar hard enough to cover his face with blood. The man backed off.
He was not surrendering. He was waiting.
When the guards loosened, he tore the lining out of his quilt, wrote his appeal on a piece of silk, and sewed it inside his winter coat. Then he told the guard that the weather had turned warm, and asked that the coat be sent home to be washed.
The coat went home. His son Di Guangyuan opened it, found the silk, and took it to the palace as a petition.
Empress Wu had Di Renjie brought before her. If you were innocent, she asked, why did you confess?
Because, he said, if I had not confessed I would have been beaten to death before I could say anything at all.
None of the seven died. All were demoted. Di Renjie was sent to be magistrate of Pengze, a small county on the Yangtze.
A chancellor, sent to run a county.
He stayed several years. While there he wrote a memorial asking that the local peasants be excused their grain tax, on the grounds that the county could not carry it.
Pengze is the same county where Tao Yuanming had walked out after eighty days, three centuries before.
Nephew or Son
In the 690s the Khitan came south, took Ji prefecture, and shook the north.
Empress Wu brought Di Renjie back as prefect of Wei. His predecessor had driven the entire peasant population inside the walls to repair the defences, and the fields had gone unplanted. Di Renjie sent them all home to farm, saying the enemy was still far off and there was no need to besiege ourselves.
The local people put up a tablet for him.
In 697 he became chancellor a second time. He was sixty seven.
What he did next had nothing to do with courts. It had to do with who would inherit the empire.
The empress had nephews who wanted the throne, Wu Chengsi and Wu Sansi. She was torn. A son would carry her blood but not her surname. A nephew would carry the surname but not the blood line she cared about.
Her surname was Wu. Her sons were Li.
In 698 Di Renjie made the argument that mattered, and he made it hard.
Which is closer, he asked, a nephew or a son? If your majesty makes your son heir, then for ten thousand generations your spirit tablet sits in the ancestral temple and the offerings never stop. If you make your nephew heir, I have never heard of a nephew who became emperor and then installed his aunt in the family temple.
The empress lost her temper. This is my family business, she said.
He did not step back. The ruler takes the whole world as family, he said. Within the four seas, what is not your family business? The ruler is the head and the minister the limbs, and they are one body. I hold the office of chancellor. How can I refuse to speak about it.
She said nothing more that day.
Some time later she brought her third son Li Xian back from fourteen years of house arrest in Fang prefecture. On the day he arrived she hid him behind a screen and told Di Renjie that she was returning the heir to him. He knelt and wept. She brought the young man out and said: here is your heir.
The histories say he was still wiping his face when he left the hall.
That was the beginning of the Li restoration.
There was a longer fuse as well.
She asked him to recommend talent. Zhang Jianzhi, he said, the prefect of Jingzhou. The man is old, but he has the makings of a real chancellor.
She moved Zhang to a provincial governorship.
A few days later she asked again. I recommended a chancellor, Di Renjie said, not a governor.
Zhang rose again, and again.
Five years after Di Renjie died, in 705, Zhang Jianzhi brought troops into the palace, put Empress Wu under house arrest, and restored her son to the throne. The dynasty was called Tang again.
Zhang was eighty years old that year.
Someone once remarked to Di Renjie that every peach and plum tree in the empire grew in his garden. He answered that he recommended men for the state, not for himself.
The Empty Court
He died in 700, at seventy one.
The Old Book of Tang says Empress Wu wept and said: the court is empty now.
She also cancelled court audiences for three days.
In her last years she had taken to calling him the state elder rather than his name, and she would not let him kneel when he came in, saying that watching him bow made her own body ache.
A ruler who had deposed one son, killed a nephew and employed the harshest interrogators of the age does not say that lightly.
He left no book on strategy, no collected essays, no famous reform. What he did, over and over, was stand in front of someone. A general who cut a tree. Six hundred people who had backed the wrong prince. A boy who had been erased from the succession at the age of fourteen.
Oddly, his fame in the West came from none of that.
In the 1950s a Dutch diplomat named Robert van Gulik wrote a series of detective novels about him, and made him into a Chinese Sherlock Holmes. Millions of copies were sold in Europe and America, and for a great many foreign readers Judge Dee was the first Chinese official they ever met.
In the novels he solves crimes by examining corpses and reasoning from clues.
The real Di Renjie cleared seventeen thousand cases and left not one of them on record.
Only the result survived, in a single line of official history. No one appealed.