On the twenty-seventh night of the first month of 820, in the Zhonghe Hall of the Daming Palace at Chang-an, an emperor of forty-three went to bed and did not get up.
The official record gives one line. The emperor died in the Zhonghe Hall.
The official cause was medicine. For two years he had been swallowing pills made by a Daoist alchemist named Liu Mi, and the pills had turned his temper into something that could not be reasoned with. He flogged the eunuchs who served him. He flogged them until they died, and then he replaced them.
There is another account, written in the Old Book of Tang and repeated in the Comprehensive Mirror. On that night two eunuchs, Chen Hongzhi and Wang Shoucheng, walked into the hall.
Which account is true has never been settled. What is settled is what happened next. From that morning on, the man who chose the next emperor of China was no longer the emperor.
The Third Son of Heaven
His name was Li Chun. He was born in 778, the eldest son of the crown prince and the eldest grandson of Emperor Dezong.
He grew up inside the palace, which meant he grew up seeing things. Once his grandfather lifted him onto his lap and asked him a teasing question. Whose child are you, and why are you sitting in my arms?
The boy answered that he was the third Son of Heaven.
His grandfather stopped smiling. The old man was the second. The boy had counted the throne, the heir, and himself, and had put the three in order without being told.
Twenty-five years had passed since the An Lushan rebellion ended when Li Chun was made a prince of Guangling at the age of eleven. Twenty-five years is long enough for a wound to close. It is also long enough for what is underneath the wound to rot.
What had rotted was the garrison system.
When the rebellion collapsed, the court did not have the strength to destroy the generals who had surrendered. So it left the north in their hands, in three great commands called Lulong, Chengde and Weibo. The office of military governor passed from father to son and from brother to brother. Taxes stayed in the province. Officials were appointed locally. Soldiers were recruited locally. A decree from Chang-an arrived, and the governor received it politely, and then did what he had already intended to do.
The New Book of Tang describes the arrangement in one sour phrase. The land is not registered with the treasury. The revenue does not enter the court.
The office itself had begun as an emergency measure. A military governor was created for a campaign, given soldiers and money and civilians to feed them, and told to win. When the campaign ended, nobody abolished the post.
A temporary fix, left alone for sixty years, becomes the shape of the country.
A Gate That Opened Twice
In 805 his father took the throne. He had suffered a stroke and could not speak.
The government fell to a group of reformers around Wang Shuwen, with Liu Zongyuan and Liu Yuxi among them. They intended to take two things: the palace armies out of the hands of the eunuchs, and the tax revenue out of the hands of the provinces.
Anyone who intends to take those two things does not last long.
In the seventh month, the chief eunuch Ju Wenzhen brought several provincial governors into the argument. The crown prince was named, then made regent, then in the eighth month his father stepped down and the twenty-eight year old Li Chun became emperor.
No soldiers marched. Nobody was killed. A gate opened and closed, and the throne had changed hands.
The man who had lifted him onto it was standing at the foot of the steps. Li Chun remembered that for the rest of his life. He killed eunuchs. He also used them, more and more, until the night one of them used him.
One Province at a Time
In 806 he declared a new reign era and called it Yuanhe, the first harmony.
His first examination came from the west. The deputy governor of Sichuan, Liu Pi, demanded to be confirmed as military governor of the province. When the court hesitated, he took it by force.
The ministers advised patience. The roads into Sichuan were bad, they said. The campaign would be expensive.
He did not wait.
By the ninth month the army of Gao Chongwen had broken into Chengdu. Liu Pi was carried back to Chang-an and executed at the willow tree in the market. In the same year a governor in the north refused to hand over his troops, and was destroyed. In 807 a third man rebelled in the south, and lasted forty days.
Three provinces in three years. None of them the real problem.
The real problem was the north.
In 812 something happened in Weibo that nobody had planned for. The military governor died, leaving a boy of eleven to inherit the seal, crying. The officers pushed forward a cousin named Tian Xing and told him to take charge.
Tian Xing then did what no governor had done in forty years. He had the land registers, the troop rolls and the granary accounts of six prefectures copied out, and sent them to Chang-an with a message. Send someone to take them.
Li Chun was reading dispatches when the report reached him. He put them down and stood up and said that this was the thing that had kept him from sleeping.
He sent Pei Du north with a hundred and fifty thousand strings of cash for the troops, exempted the farmers of Weibo from a year of tax, and gave Tian Xing a new name, Hongzheng, the upright.
Some of the ministers said the sum was too much. It was a large slice of one year of revenue. Li Chun said it was worth it.
Weibo had been the hinge. With the hinge gone, Chengde and Lulong were standing in a corridor with doors closing at both ends.
The City in the Snow
The hardest piece was Huaixi.
Its governor, Wu Yuanji, held three prefectures across the road that carried grain from the Yangtze to the capital. Every boat going west paid him or went around him.
In 815 the court moved against him. The war took three years.
The worst night of it was not on the front. It was inside Chang-an.
Before dawn in the sixth month of 815, the chief minister Wu Yuanheng left his house for the morning audience. At the east gate of his lane, someone in the dark shot out his lantern with an arrow, and then the knives came. They took his head with them. On the same morning the censor Pei Du was cut down on his way to the palace and rolled into a ditch. His felt hat was thick enough to save him.
The killers left a message behind. Do not be in a hurry to arrest us. Ask yourself first why you deserved this.
The court panicked. Men who had voted for the war now wrote memorials asking for it to stop, and asking for Pei Du to be dismissed.
Li Chun told the assembled ministers that one Pei Du was enough to break the rebels. Then he sent him to the front.
In the tenth month of 817, the commander Li Su left his base at Wencheng with nine thousand men, in heavy snow, and marched east.
The Comprehensive Mirror records what the weather did. Men and horses froze to death along the road. Banners cracked in the cold. Horses stood with their legs drawn under them. The men who carried fire dared not light it, because a fire could be seen for miles.
Someone asked where they were going. Li Su said, into Caizhou, to take Wu Yuanji.
The faces around him changed. That was a march into a wall.

They reached the city before daylight. Caizhou had not been attacked in thirty years. Nobody on the wall expected an army to come out of that weather. The men climbed the ramparts while the sentries were still asleep. The gate opened. The roosters crowed a third time.
Wu Yuanji was woken in his bedroom with the news that the government troops were inside the city. He did not believe it. He said it must be the garrison come for winter clothing.
He climbed the inner wall and looked down, and saw the streets full.
He shot arrows over the parapet and the arrows did not reach the ground, because there was no ground left to reach.
That afternoon he surrendered. Huaixi was over.
When the report reached Chang-an, Li Chun received his ministers in the Yanying Hall and said that until that day he had not known that being emperor could feel like this.
The Night in the Zhonghe Hall
In 818 the governor of Ziqing rebelled. The court sent five armies. In the second month of the following year his own officer killed him and handed twelve prefectures to the government.
That was the fourteenth year of Yuanhe. The Comprehensive Mirror closes the account with six characters. By this point all obeyed the restraints of the court.
Sixty-four years had passed since the great rebellion. For the first time in sixty-four years, every military governor in the empire held a commission signed in Chang-an.
It was not only on paper. When Tian Hongzheng was transferred from Weibo to Chengde he had to bring his own soldiers with him, because the soldiers of Hebei did not know his face. Civil officials sat in governors halls and counted tax. Grain boats from the south went straight up the canal.
And in the first month of that same year, Li Chun sent eunuchs to a monastery in Fengxiang to bring a relic of the Buddha into the palace.
The city lost its mind. The rich gave away fortunes. Men burned incense on their own shaved scalps as an offering.
The vice minister of justice, Han Yu, wrote a memorial against it. He said the Buddha was a barbarian doctrine that had entered China late, that the dynasties which had favoured it had short lives, and that a piece of bone was not a thing to be carried into a palace.
Li Chun read it and shook with rage and wanted him killed. Pei Du and Cui Qun talked him down to exile. Han Yu was sent to Chaozhou, on the far southern coast.
He went. At the Lan Pass the snow was heavy and he wrote a poem to his nephew about the clouds over the Qinling mountains and the horse that would not move forward.
That was the fourteenth year of Yuanhe in two frames. In one, the whole country had been pulled back under a single office. In the other, the man holding that office had begun to believe that he was not like other men.
He began building. He ordered the army to repair a hall and dredge a lake and raise a new pavilion. Two generals pointed out that the treasury was empty after Huaixi. He sent them out of the capital.
He began taking the pills. The alchemist said they would make him immortal.
He began beating the men who served him. The Old Book of Tang says he grew thirsty and irritable, and that the eunuchs around him were flogged for nothing, and sometimes flogged to death.
He still had no empress. The Lady Guo was a granddaughter of the great general Guo Ziyi, the best birth in the palace, and the ministers asked four times for her to be elevated. He refused every time. Later historians guessed that he did not want a family that powerful standing next to the throne, and did not want a wife who could tell him no.
In 812 he named his eldest son Li Heng as heir.
In the first month of 820 he fell ill. While he was ill, the eunuch Tutu Chengcui began to work out how to replace the heir with another prince.
On the twenty-seventh night, the Zhonghe Hall.
In the morning there was a will. The crown prince ascended. Tutu Chengcui and the other prince were executed the same day.
The men who killed them were the palace commissioners Liang Shouqian and Wang Shoucheng.
Wang Shoucheng was one of the two who had walked into the hall.
From that year, for more than a century, eunuchs made emperors in China. the grandson of Li Chun, Emperor Wenzong, tried to break them, failed, and spent his last years under house arrest, saying that he was worse off than the last kings of Zhou and Han.
Five months after his death he was buried on Jinzhi Hill in Fengxian county, west of the capital, in a tomb called Jingling.
What he had built did not last.
A year after his death, Lulong rebelled and Chengde murdered Tian Hongzheng. The three northern commands went back to doing what they had always done.
The New Book of Tang sums him up in a sentence that is almost unfair and not quite wrong. In his later years he trusted the wrong men.
His life work was to pull a shattered country back under one office. He did it. He also proved that the work could not rest on one body. When the body fell, the country came apart again within twelve months.
The hill is still there in Shaanxi. The earth mound is low and the stone figures are broken. On the stele in front of it is his temple name, Xianzong.
The character xian means wide in learning, and able to reward good and punish evil.
Sources: Old Book of Tang, Annals of Emperor Xianzong; New Book of Tang, Annals of Emperor Xianzong; Comprehensive Mirror for Aid in Government, chapters 237 to 241; Old Book of Tang, biography of Pei Du. The account of the killing by eunuchs appears in the Old Book of Tang and in the Comprehensive Mirror, both compiled after the fact, in the tenth and eleventh centuries. This article sets the two versions side by side and does not decide between them.