In the seventh month of 1628, a man knelt on a low platform in the palace at Beijing and promised the emperor five years.
The room was small. Tea stood on the table. Light came through the lattice window and lay in squares on the grey brick floor.
The man was Yuan Chonghuan, forty four years old, from Dongguan in the south. Two weeks earlier he had been a private citizen. Now he was Minister of War and commander of the whole northeastern frontier.
The emperor, Chongzhen, was nineteen. He had been on the throne less than a year. His brother had died young, the palace eunuch who had run the government was dead too, and the young man had inherited a state that was running out of money and losing a war.
He asked a direct question. What will you do about Liaodong?
Yuan gave him an answer in classical phrasing. If your majesty will give me the authority to act as I see fit, I will recover the whole of Liaodong in five years.
Five years.
The emperor was delighted. He said that for the recovery of the northeast in five years he would not begrudge the highest titles in the gift of the throne.
The audience lasted four hours. The emperor gave him silver from his own household, a robe, a jade belt, and the sword that had belonged to the founding emperor, which carried the right to execute without waiting for approval.
When it was over, the emperor went inside to rest. A colleague took Yuan by the sleeve and asked the practical question. Five years. Do you actually have a plan?
According to a seventeenth century collection of notes on the fall of the Ming, Yuan answered that the emperor was anxious, and that he had said it to put the young man at ease.
To understand what that promise cost, you have to understand the state of the empire in 1628. The treasury was short of silver. The army in the northeast had not been paid on time in years. There had been mutinies, and there had been officers who simply took their men and left. The young emperor had inherited a court that had been run by a eunuch for most of his childhood, and he trusted almost no one.
That answer got out.
Two years later the same man was tied to a post in a market in the same city, and the people of the city tore him apart.
The City That Held
Before the five years, there was a city.
Ningyuan, now called Xingcheng, in Liaoning, sat about a hundred kilometres beyond the Shanhai Pass. In the 1620s the Ming had been losing ground in the northeast for years. After the fall of Guangning, most of the court agreed on one thing. Pull back to the pass, and give up everything outside it.
Yuan disagreed. He had ridden out beyond the pass alone once, two hundred li of hard country, just to look at the ground. He came back and said that with troops, money and grain he could hold it by himself.
In 1625 the man who had backed him, Sun Chengzong, was dismissed. His replacement arrived and immediately ordered the evacuation of the whole outer line. The garrisons at Jinzhou, Youcun and Daling River were to pull back inside the pass. Grain that could not be carried was to be burned.
Yuan said he would not withdraw from Ningyuan.
So on several hundred li of open ground outside the pass, one city was left flying the Ming flag.
He rebuilt it with a general named Man Gui. High walls, thick walls, a moat, and eleven cannon bought from the Portuguese at Macao. The Ming called them red barbarian cannon. Each shot weighed about twenty jin and could carry three or four li. In that war they were the most expensive weapon on the field, and the court had sent its best pieces here.
In the first month of 1626, Nurhaci came.
He brought fifty or sixty thousand men and took eight towns in a row. By the time he reached Ningyuan, the garrisons at Jinzhou and Youcun had already gone. Ningyuan stood alone.
Inside the walls there were a little over ten thousand soldiers.
The Ming commander at the pass, Gao Di, did not move. No one was coming.
Yuan burned every house outside the wall and moved the grain inside. Then he gathered his officers and men, cut his own arm and wrote a pledge in blood, and bowed to them. The official history says the soldiers wept and that no one spoke of leaving.
Nurhaci sent a man to offer terms. Yuan sent back a short reply. I am holding this city. If you want it, come and take it.
The attack began.
Ladders, shielded carts, sappers digging at the base of the wall. The cannon fired down into the packed ranks. Three days. Sections of the wall were undermined and collapsed. Yuan stayed on the wall and did not come down.
On the third day the assault weakened. On the fourth morning the tents were struck.
The Jin had never attacked a wall defended by guns of that size. They came on anyway, in ranks, and the wall held.
It was the first time the Ming had held a city against the Later Jin.
Nurhaci died in the eighth month of that year. The Qing histories say he fell ill. The Ming accounts say he was wounded by a cannon shot at Ningyuan. The argument has never been settled. One thing is not in dispute. This was the last battle he ever fought.
The Island
After Ningyuan, Yuan was made governor of Liaodong. The next year he won again, at Jinzhou and Ningyuan.
Then he resigned.
The reason was simple. He would not pay for a living shrine to the chief eunuch, Wei Zhongxian. The eunuch faction had him removed, and he went home to Guangdong.
When Chongzhen took the throne, Wei was destroyed and Yuan was called back. This time the emperor gave him the entire frontier.
The first thing he did on arrival was kill a general.
The general was Mao Wenlong. His base was an island called Pi, off the coast of Korea. He had been there eight years. In the years when everything on land was collapsing, he had crossed the water with two hundred men and seized the place, gathered the refugees of Liaodong into an army, and raided the rear of the Jin again and again. He was useful.
He was also impossible to control. He overstated his troop numbers to draw pay, ran his own markets, and obeyed the court about half the time. Yuan wanted one chain of command. Mao would not give up his.
In the sixth month of 1629 Yuan sailed to a small island called Shuang with a review of troops as his excuse. He read out twelve charges. Mao argued. Yuan bowed toward Beijing and said that he was killing the man for the sake of the state, and asked the emperor to remember his intention if he himself were ever accused of it. Then he took out the sword and killed him on the spot.
The killing was argued about at the time and has been argued about ever since.
Yuan said that without it there could be no unified command. His critics said that killing a senior general in the field teaches every other officer what to expect. And when Mao died, his men did not obey the officers sent to replace him. Within months they defected to the Jin, taking with them ships and gunners.
Yuan knew it was a gamble. He reported it and asked to be punished. Chongzhen did not punish him. He issued an edict praising him.
From Beijing to that island was more than ten days by fast horse. By the time an answer came back, the man was already buried. That is what the phrase act as you see fit had bought him.
The men who defected took the island fleet with them. They also took the gunners, and the guns. For the next several years, the Jin would have a navy on the coast that the Ming had trained for them.
Three months later the Jin army was outside Beijing.

Seven Hundred Li
In the tenth month of 1629, Huang Taiji did not attack the line Yuan had spent years building.
He went around it. He took the road through Mongol territory, broke through the Great Wall at passes north of the capital, took Zunhua, and drove south.
It was the first time a Jin army had come this far inside the wall.
Yuan was in western Liaoning when the news reached him. He turned north at once with nine thousand cavalry.
From Shanhai Pass to Beijing is about seven hundred li. They rode for days without proper sleep, changing horses as the animals failed, fighting off detached enemy units on the way and then riding on.
Beijing had not seen an enemy army since the fifteenth century. The gates were shut. Prices in the markets doubled in a day. Families with money in the south began to send their silver out of the city.
He had one chance to stop them at Jizhou. He got there and deployed. Huang Taiji did not engage. He went around the city and kept going toward Beijing.
That decision later became one of the charges against him. Why did you not hold them at Jizhou?
In the eleventh month he reached the capital and drew up his line outside the Guangqu Gate.
Across the field was the main Jin army, tens of thousands of men.
Nine thousand against that. They fought all day. Yuan was hit by several arrows and kept his place in the line. Three of his senior officers were killed. Several hundred of his men were killed. The Jin withdrew.
Beijing held.
Then he was arrested.
The Western Market
Rumor moves faster than cavalry.
In the city, people said the enemy had been let in. They said Yuan had an agreement with Huang Taiji. They said he had stood outside the wall and refused to fight.
Said often enough, these things became evidence.
The official history tells a story. Huang Taiji captured two eunuchs from the palace, kept them in a tent, and had men talk loudly in the next room about a secret pact with Yuan. Then he let the eunuchs go. They went back and told the emperor.
The story is famous. Scholars have doubted it for a long time. Some argue that Chongzhen did not need a trick. He was suspicious by temperament, he had never been comfortable with a commander who held that many troops that far from the capital, and this was a man who had already executed a general on his own authority.
Either way the ending is the same.
On the first day of the twelfth month, the emperor summoned Yuan to the platform again. This time the subject was not Liaodong.
Yuan knelt. He was stripped of his rank and taken to the imperial prison.
The charges published by the court read: failure to accomplish what was entrusted, concealment, selling grain to bandits, and killing a commander in pursuit of a negotiated peace.
Not one of them says he gave the city to the enemy.
He spent eight months in prison and never got a face to face hearing.
On the sixteenth day of the eighth month of 1630, he was executed in the Western Market.
He was forty seven.
I will not describe what was done to him. The official history gives one line; the private notes give pages. One fact is enough here. The people of Beijing believed he had betrayed them, and they paid for pieces of him and ate them raw.
He saved the city. The city ate him.
One Grave, Three Hundred Years
After he died, no one dared to claim the body.
That night a soldier who had served under him went to the market. The histories preserve only his surname, She. He carried what was left out through the dark, buried it inside the Guangqu Gate in ground set aside for people from Guangdong, built a small house beside it, and stayed.
Before he died he left three rules for his family. Do not go back to Guangdong. Do not take office. Guard this grave, generation after generation.
They have guarded it for more than three hundred years.
In 1784 the Qianlong emperor issued an edict restoring Yuan to honour. The text said that although the man had fought against the Qing, he had been loyal to the ruler he served, and that a blind court had failed him.
The She family was still there.
In 1917 a group of men from Guangdong built a small shrine to him by the lake at Longtan. Kang Youwei wrote the inscription on the stele.
By the twentieth generation the keeper of the grave was a woman named She Youzhi. She looked after the tomb and the courtyard until her death in 2020.
The neighborhood inside the Guangqu Gate is now a dense part of the city. A subway line runs nearby. There are convenience stores and noodle shops on the street.
Turn into the quiet courtyard off that street and you find a small plot with a few trees, a mound, a hall, and a stone at the gate.
The stone reads: the tomb of Yuan Chonghuan, commander of Liaodong, of the Ming.
A couplet hangs inside the hall. It says that the empire broke its own great wall, and that his spirit still stands over the mountains and rivers.
The words about the wall are what later generations said for him. He never said them himself.