In the second year of Houyuan, late at night, an imperial envoy came to a prison in the capital with orders to kill every prisoner inside. The man at the gate refused to open it.
The gate belonged to the Commandery Residence Prison, a holding jail attached to the lodging houses where provincial officials stayed while doing business in Chang’an. Behind it were several dozen people whose cases had not yet been closed. One of them was a baby a few months old.
If the gate opened, all of them died before dawn. If it stayed shut, the man who kept it shut would die after dawn. His name was Bing Ji, and he was a prison official.

The whole episode occupies fewer than a hundred characters in the History of the Former Han. It is also the closest thing that book contains to a wager: the stake was an entire jail, and the man holding the cards had exactly one sentence to play.
The Year After the Witchcraft Purge
To understand that night, you have to know what had happened the year before.
In 91 BC, a scandal known as the witchcraft purge broke over Chang’an. Emperor Wu was old and ill, and he believed someone was burying wooden effigies in the palace to curse him. A favourite official, Jiang Chong, used the investigation to move against the heir apparent, Liu Ju. The prince could not clear his name, raised troops, lost, fled, and killed himself. The empress Wei Zifu died as well.
It did not stop there. Investigators followed confessions outward from the palace to the provinces, from officials to ordinary households. The history records that tens of thousands were executed or exiled. The figure may be loose, but the atmosphere in the city is not hard to imagine. Once a name was spoken aloud, a household disappeared.
The emperor did not shrug it off. The next year he ordered a Palace of Longing built in Huxian, and a terrace beside it called Looking Back. A man who had driven his own son to suicide had begun to miss him at night. No edict ever admitted fault, and no confession of remorse survives. But that private turn helps explain the second year of Houyuan, when an envoy came back and reported that a prison clerk had refused an imperial order, and the emperor did not rage.
Bing Ji had previously served as a prison inspector under the commandant of justice. After the purge he was recalled and put in charge of the people held in the Commandery Residence Prison.
That jail was not an ordinary one. In the Han system, each commandery kept a residence in the capital for officials, tax clerks and prisoners transferred from the provinces. The jail attached to it held people sent up from the countryside whose paperwork was still moving. They were not condemned criminals. They were cases in progress.
Chang’an had many such rooms. The commandant of justice kept his own cells, so did the metropolitan commander, and almost every sizable office had a lockup of its own, holding everyone from tax debtors to officials caught up in a treason file. The Commandery Residence Prison was one small set of cells in the courtyard of the provincial lodgings, loosely run. It was precisely because it was loosely run that an infant could survive in it.
When Bing Ji took over, he found a baby among them.
Two Women Chosen for Their Character
The child was the grandson of the dead crown prince and the great-grandson of the reigning emperor. He had been a few months old when the purge began, and because his grandfather and father were both implicated, he had been placed in the jail. The record says simply that he was held on account of the crown prince. A child who could not yet walk was being detained for a grandfather’s rebellion.
Bing Ji’s reaction is described in two short clauses. He saw the child and pitied him. He also knew, from the evidence, that the crown prince had never actually plotted, and he grieved that the great-grandson was innocent.
Those are two different things. The first is a human reflex. The second is a finding. It is rare for both to arrive in the same person at the same moment.
Then he did something small. He picked two women among the female prisoners who were careful and decent, and set them to nurse the infant. He moved the child to a dry, airy cell.
The history does not give the women names at this point. Their names surface years later, in a quarrel over credit: one was Hu Zu, the other Guo Zhengqing.
A prison administrator choosing a wet nurse for an inmate’s baby. Nothing in the regulations required it. It produced no achievement that could be reported upward. It was simply the least official thing a man could do with the power he had that day.
Holding the Gate Until Daylight
In 87 BC the emperor fell gravely ill and moved between his country palaces. A diviner told him that a substance with the aura of a Son of Heaven was visible over the prisons of Chang’an.
That sentence was a death warrant. An edict went out: every prisoner in every jail attached to a metropolitan office, regardless of charge, was to be executed.
The palace usher Guo Rang took the edict and went to the Commandery Residence Prison that same night.
By procedure he should have walked in, read the order aloud, and begun. He could not get in. Bing Ji had shut the gate and left him standing outside.
What Bing Ji said through the gate is preserved. The great-grandson of the emperor is in here. Other men who are innocent should not be killed either. How much less the emperor’s own great-grandson.
Look at the logic. He did not say the edict was unlawful. He did not say he would appeal. He said: there is a great-grandson in here. In that moment, blood was the only argument with any chance of working. Law had no seat at the table. Kinship did.
Guo Rang outside, Bing Ji inside. One held an edict, the other held a set of keys. The history covers the rest of the night in five characters: they faced each other until dawn.
Morning came. Guo Rang had not got in. He returned to the palace, reported, and impeached Bing Ji for defying an edict.
The emperor listened and said: Heaven made him do it. Then he proclaimed a general amnesty.
Not one prisoner in that jail died.
Pause here. That amnesty was issued because of one baby. The history is explicit: the inmates of the Commandery Residence Prison survived through Bing Ji, and the mercy then reached the whole empire.
The reverse also holds. If there had been no baby in that jail that night, would Bing Ji have shut the gate? The history does not say, and we cannot answer for him. He saved dozens of lives with an argument that rested on one of them.
He Never Mentioned It
If the story ended there, it would be a tale of a loyal servant saving his lord. It does not end there. The second half is colder.
The baby lived. He grew up outside the palace under the name Liu Bingyi. Twenty years later, in 74 BC, he was brought into the Weiyang Palace and made emperor. He is known to history as Emperor Xuan of Han.
Bing Ji did not go to him.
The record says that from then on Bing Ji never mentioned the night at the prison. He rose through the bureaucracy, from chief clerk to a senior minister, on other merits entirely.
The turn came from an accident. An old palace servant named Ze had someone submit a petition on her behalf, claiming she had raised the emperor as an infant and deserved recognition. Such claims had to be checked, and during the check she named Bing Ji, because it was he who had arranged the nursing.
Bing Ji was called in to confirm her account. He recognised her at once and said something unkind. You were flogged back then for looking after the child badly, he told her. What credit do you have?
Then he gave two names: Hu Zu and Guo Zhengqing. Those two, he said, were the ones who had done something.
Only then did the emperor learn how he had survived infancy. He issued a decree making Bing Ji the Marquis of Boyang.
The history adds a short verdict: Bing Ji was a deep man who did not advertise his own goodness.
That sounds mild. On this matter it is heavy. A man had done something worth a lifetime of wealth and rank, and then said nothing for twenty years. He had not forgotten. He was waiting to be remembered. And when he finally was remembered, he spent the moment correcting the record: the credit is not mine, it belongs to two women who fed a baby.
The Same Man, Another Street
Bing Ji later became chancellor and died in office. His posthumous title was Ding, meaning settled. In 51 BC the emperor had portraits of eleven meritorious officials painted in the Qilin Pavilion. Bing Ji was among them.
About his years as chancellor, the history preserves a second scene that reads as if written about a different person.
One day Bing Ji was travelling through the city when his carriage passed a crowd fighting in the road. Bodies lay at the roadside, dead and wounded. He did not stop. He did not ask.
Further on he saw a man driving an ox. The animal was panting, tongue hanging out. Bing Ji halted and sent a rider to ask how far the ox had been driven.
His staff thought this was strange. Just now there were dead men and you said nothing. Now it is an ox and you are concerned.
Bing Ji explained. When commoners fight and kill each other, that is the business of the metropolitan magistrate and the governor of the capital region; at the end of the year the chancellor grades their performance and reports rewards and punishments. A chancellor does not handle small matters, and should not be questioning people in the street. But it is spring. The season should not yet be this hot. If an ox pants after a short drive, the weather is out of joint, and that could damage the harvest. The Three Excellencies are charged with harmonising yin and yang. That is what I am supposed to worry about.
His staff conceded that he understood the larger frame.
The passage has been quoted for two thousand years as a model of ministerial proportion. It can also be read the other way. A man who once defied an imperial edict at midnight and put dozens of lives on his own head could, thirty years later, walk past a corpse in the road because the corpse was not his department.
The two scenes sit a few lines apart in the same chapter, written by the same hand.
What the Gate Was Made Of
Go back to that night.
Bing Ji did not hold the gate with law. No Han statute said that an envoy bearing an edict may not kill the innocent, and he cited none. He used a sentence about blood and a physical act: he closed a door.
The episode became one of the most quoted passages in the Han history, a set piece in the literature of honest officials. But the conditions that made it work were fragile. The emperor had to change his mind before morning. The envoy had to be willing to go back and report rather than break in. And the baby had to be, in fact, the emperor’s great-grandson. Remove any one of the three and nobody inside saw daylight.
So this is not a story about a system that protects people. It is a story about a single official who decided not to carry out an order at the moment the system failed.
And the ending is more ambiguous than it looks. A pardon in Han China was not a verdict. It was an act of imperial grace, proclaimed on auspices that ranged from a good harvest to an unusual star, and it could empty a jail overnight without anyone being tried. The prisoners were never declared innocent. They were released because the emperor changed his mind, by the same authority that had ordered them killed and could, on another morning, have ordered it again. The gate bought them one night. The amnesty bought them their lives. Neither was a ruling.
And the sharpest part is this: his reason was still the logic of privilege. He saved the great-grandson, and the whole jail came along. If that cell had held no royal infant, would the gate have stayed shut? The history does not spend a word on it.
Readers outside China often meet the old Chinese courtroom through Judge Dee, the Tang magistrate reinvented in English by the Dutch diplomat Robert van Gulik, and through Song Ci, whose 1247 manual of forensic examination is the oldest systematic work of its kind in the world. Those books are full of clever magistrates reading a corpse or a footprint. Bing Ji fits none of it. He detects nothing. He examines nothing. He simply stands in a doorway and refuses.
For an English reader, the nearest analogue is not a detective but a jailer who ignores a warrant. The legal principle that later grew up around such refusals, that a person may not be punished except through lawful process, took centuries to become a rule rather than a gamble. In 87 BC it was a gamble, and it was won by a man who had no authority to win it.
Day broke. Guo Rang left. The prisoners were still alive. The amnesty was read out across Chang’an. More than forty years later a portrait of Bing Ji in chancellor’s robes was hung in a pavilion, and nobody looking at it knew what he had done with a gate in the second year of Houyuan.
The history remembered the gate. It never said what the gate was made of.