In the autumn of 91 BC the prison inside Changan held more people than it had room for. A treason case had just collapsed the ruling family. The crown prince, accused of sorcery against his own father the emperor, had raised troops, lost, and killed himself. Everyone who had ever drunk wine with him was dragged in.
The official in charge of that prison was a man named Bing Ji. He was in his forties, and he had spent enough years in law courts to know that most of the files in front of him were lies.
At the back of the building there was a baby.
He was a few months old. His father and mother were both dead in the same purge, and the charge against them had come down onto the wrapping cloth with him. Bing Ji picked two nursing mothers from among the women prisoners, moved them into a dry, roomy cell, and told them to feed the child. His own salary was not large. He still sent in rice and meat every month.
The baby lived. They gave him a name: Bingyi, which means already ill.
The Child in the Cell
Four years later the emperor, Wu of Han, fell gravely ill.
A diviner told him that a spirit of empire was rising from the prisons of the capital.
The order went out that night: every prisoner in every jail in Changan was to be executed, whatever the charge.
The officer sent to carry it out arrived at the gate of that particular prison before dawn. Bing Ji shut the gate and stood behind it.
The two men argued through the wood until daylight. The officer said he carried an imperial edict. Bing Ji said that a great-grandson of the emperor was inside, and that if innocent men could not be killed, then the emperor could certainly not kill his own great-grandson.
At sunrise the officer went back and reported what had happened, adding a charge of defiance against Bing Ji.
Emperor Wu was silent for a long time, and then said that this must have been the doing of heaven. He pardoned the whole empire.
Several hundred men walked out of that prison. So did a boy of four.
He remembered none of it. But the word for a political prison followed him for the rest of his life, and when he finally had power of his own, one of the first things he did was create new posts whose only job was to review criminal sentences.
Nobody came to collect the child.
His grandmother had family still living, and they took him in for a few years. Then an imperial order placed him in the household office of the palace and had his name entered in the imperial clan register, which made him, on paper, a member of the family again.
The household office managed maids and cleaners. A great-grandson of an emperor living there sounded impressive and meant nothing. He was an orphan with a roof.
The man who ran that office was Zhang He, a son of the famous official Zhang Tang. Zhang He had been castrated years earlier and had no prospects of his own. He liked the boy, taught him to read, and paid a teacher out of his own pocket. He even wanted to marry a daughter to him, and raised the idea with his younger brother Zhang Anshi, who was then a general and close to the regent Huo Guang.
Zhang Anshi answered flatly. The boy was the son of a criminal. If he grew up a commoner with enough to eat, that was already more than he could expect. Marriage was out of the question.
So Zhang He found him another match instead: the daughter of Xu Guanghan, a minor keeper of the imperial laundry, named Xu Pingjun.
The wedding was small. The room they lived in was smaller.
But the boy had something no prince in the palace could buy. He grew up in the streets of the capital. He walked from the palace quarters out to the counties around Changan and saw what was there. Years later he said that in those days he often went cockfighting and racing horses with local men, and that this was how he learned which wardens took bribes and which county magistrates were cursed behind their backs.
An Old Sword
In 74 BC the emperor Zhao died without a son.
Huo Guang, the regent who had run the government for twenty years, brought in a young prince from the east. Twenty-seven days later he removed him again, after reading out a list of one thousand one hundred and twenty-seven offences to the empress dowager.
An empire cannot go a day without a ruler. The ministers met in the great hall to choose another.
Then Bing Ji spoke. He was no longer young and had been waiting for this moment for two decades. He said that the great-grandson of Emperor Wu, named Bingyi, was living among the common people, that he was eighteen or nineteen, that he knew the classics, and that he was quiet in his habits.
Huo Guang agreed.
The young man was brought in from the streets, made a marquis first, and then placed on the throne. He knelt in the ancestral temple inside the Weiyang Palace and, when he rose, looked up at the beams.
What happened next was the smallest and most important act of the whole accession.
The ministers wanted to make a daughter of Huo Guang empress. Memorial followed memorial praising the virtue of the Huo family.
The new emperor issued an edict. It did not mention the empress at all. It said that years ago, when he had been living in obscurity, he had owned an old sword, that he still thought of it, and that he would be grateful if the court would help him find it.
The hall went quiet.
Everyone understood.
Xu Pingjun became empress.
That is the origin of a Chinese phrase still in use today, meaning old love remembered. It was not a love letter. It was a statement of position. You made me emperor, but I choose my own wife.
Huo Guang was the one man in China who could not be argued with, and he let it pass. His wife Xian did not.
Three years later the empress was pregnant again and fell ill near her time. Xian paid a palace midwife who also practised medicine, and the medicine was mixed with a poisonous root. The empress died. The history covers that night in a few short lines.
A daughter of the Huo family entered the palace and became empress.
The emperor said nothing. He waited five years.
Needles in the Back
One scene is recorded in the official history.
When the new emperor went to the ancestral temple for the first time, the regent rode in the same carriage. The young man sat beside him and did not speak for the whole journey. Later, describing that ride to people close to him, he said it felt as though needles were pressing into his back.
In 68 BC Huo Guang died. The emperor buried him beside the tomb of Emperor Wu with almost imperial honours, gave him a jade burial suit, and granted him a noble title.
That same year the emperor began to rule in his own name.

A year later he named the son of Xu Pingjun as crown prince. It was a careful move. The new crown prince had a living grandfather on his mother side, who was given a title and a fief. The empress was a Huo, and the succession was not in her line. The whole court could read it.
Then came the army. The command of the palace guards held by a Huo was taken away, and Huo kinsmen were moved out of the capital one by one, replaced by relatives of the emperor from two other families.
The Huo household panicked, met in secret, and decided to strike first.
In 66 BC the plot was uncovered. The Huo clan was destroyed, and the empress was removed and sent to a distant palace.
Only then did the man from the prison actually hold the state.
But while the confiscated files were still stacked on the imperial desk, he did something that made no sense to anyone watching. He did not touch the tomb of Huo Guang. He did not strip the dead man of his title.
Twenty years later he hung a portrait of Huo Guang in the first place of honour in a gallery of eleven.
Five Days a Year
His way of governing was the opposite of his great-grandfather.
Emperor Wu hired men for brilliance and discarded them when the brilliance ran out. This emperor hired men for results and kept them for decades. He restored an old practice of hearing reports in person every fifth day, and he asked questions that officials hated. How many households have been registered in your commandery this year. How many bandits were actually caught. Which district still has fallow fields.
He created four new posts for reviewing criminal verdicts, and an office to check whether sentences were too harsh. In one edict he wrote that a state which does not reward merit and does not punish guilt cannot be governed even by the legendary sage kings.
He built a grain reserve that bought in cheap years and sold at cost in dear ones. He gave over imperial parks and public land to poor families to farm without rent.
One small scene from those years is worth keeping. Bing Ji, the man who had once stood behind a prison gate, later became chief minister. Riding through the capital one day he passed a street fight in which a man had been killed, and he did not stop. A little further on he saw an ox standing in the road, breathing hard with its tongue out, and he ordered the carriage to halt so he could ask how far the animal had been driven.
His staff thought this was absurd. Bing Ji said that a killing in the street belonged to the magistrate of the capital district and was not the business of a chief minister on the road. But it was still spring, and an ox should not be panting like that. That was a sign of the seasons out of joint, and the seasons decided whether the harvest would feed the empire.
In 60 BC he established a military protectorate in the western regions. It was the first time a Chinese court had placed that territory inside its administrative system rather than merely inside its ambitions.
In 54 BC he sent twenty-four inspectors across the empire to reopen wrongful cases and to investigate officials who used torture as a habit.
Historians call the period a restoration. The official history says that his achievements honoured his ancestors and that his work outlasted him.
In those same years he had one conversation with his son that is worth remembering. The crown prince suggested that the court should rely more on scholars and less on law. The emperor, according to the history, darkened and said that the house of Han had its own system, that it had always mixed the methods of the conqueror with those of the king, and that it could not be run on moral teaching alone.
Then he sighed and said that the boy who would ruin the family was this one.
The Khan at the Bridge
In the first month of 51 BC, on the Wei Bridge outside Changan, a Xiongnu khan came to the court.
The scale matters. From the year the first Han emperor was surrounded by Xiongnu cavalry on a frozen hill, the two sides had fought, married, traded and raided for almost two centuries. Han princesses had been sent north with silk and grain as the price of quiet. Emperor Wu had spent forty-four years breaking Xiongnu power and bankrupting the treasury doing it.
Now the khan himself came to the capital and called himself a subject.
The road below the bridge was lined with tens of thousands of people. Envoys and kings from the western regions stood in the crowd, and so did ordinary men from the city. The emperor climbed the bridge, and the crowd roared.
The khan was seated above the feudal lords but was not required to give his personal name in the ceremony of homage. The arrangement came from a senior official who argued that a man who submits voluntarily should not be treated like a conquered officer, and the emperor accepted it.
The gifts were listed in the records: a gold seal, a green silk cord, a sword with jade fittings, a bow, arrows, spears, a carriage, fifteen horses, twenty jin of gold, two hundred thousand coins, and eight thousand bolts of brocade.
The khan stayed a month and left in the second month. Before going he asked to be allowed to settle south of the frontier and guard the border for Han.
Sixteen thousand cavalry escorted him out through the northern pass.
That same year the emperor thought of the men who had carried him to this point, and ordered eleven portraits painted on a gallery wall.
Huo Guang. Zhang Anshi. Han Zeng. Zhao Chongguo. Wei Xiang. Bing Ji. Du Yannian. Liu De. Liangqiu He. Xiao Wangzhi. Su Wu.
Each portrait carried a rank and a name.
All except the first.
The first carried only this: Grand Marshal, General-in-Chief, Marquis of Bolu, of the family Huo.
No personal name.
In the etiquette of the time this was the highest respect that could be shown to a servant of the state. Given what the emperor had lived through, those words also held something else. The man who put needles in his back. The man whose household had killed his wife. The man he had waited five years to move against.
He chose to leave the name out.
In the winter of 49 BC the emperor died in the Weiyang Palace. He was forty-three.
He was buried at Duling, southeast of the capital.
He began in a prison, grew up in the streets, was placed on a throne at eighteen by a man he feared, took real power at twenty-seven, and was dead at forty-three.
He left behind a state where grain was so cheap that the histories record a price of five coins a picul, where the western regions had an office instead of only a garrison, and where a Xiongnu khan had bowed below a bridge.
He also left the seeds of trouble. In his last years he trusted palace eunuchs and let his wife family grow too large. His son, the crown prince he had judged so harshly, would be the one who let the great families take the countryside.
The tomb mound at Duling still stands, high enough that from the top you can see where the walls of Changan used to run.
The gallery is gone.
Not one of the eleven portraits survived. All we know is what was written on the first, and what was left off it.