In the eighth month of 1323, an imperial camp stood on a grassy slope twenty li south of Shangdu, the summer capital of the Yuan dynasty.
The tents were up. Lamps were still burning inside the largest one.
Before morning, the emperor inside that tent would be dead, and the men who killed him would be rewarded with promotions.
Four weeks later, every one of those men would be executed.
This is a story about a young ruler in a hurry, a code of law that outlived him by a century, and a single night that convinced the Mongol court that armies, not laws, decided who ruled China.
An Eighteen-Year-Old Emperor
Shidebala was born in 1303, in Huaizhou, in the Yellow River country of Henan.
He grew up reading Confucian classics in Chinese, which was unusual for a Mongol prince of his generation.
His father, Emperor Renzong, had come to the throne through an agreement with his own brother: rule first, then hand power back to his brother side of the family.
Renzong did not hand it back. He made his son heir instead.
That broken promise sat in the imperial clan for twelve years. Nobody raised it. Nobody forgot it.
In the third month of 1320, Renzong died. Shidebala, eighteen years old, took the throne in the great hall at Dadu.
He inherited two shadows.
One was his grandmother, the grand empress dowager Dagi, who had spent two decades placing her people in every office that mattered.
The other was Bayan of the Merkid, no relation to the famous general of the same name, a chief minister who had been dismissed once and had come back the moment Renzong died, carrying a fistful of new titles.
Together they ran the court. A censor who once submitted a list of charges against the minister had to hide in the empress dowager palace for months. When Renzong died, that censor and his colleague were executed. The charge was disobeying the empress dowager.
The young emperor did not fight them. Not yet.
In the fourth month of 1320 he appointed a young man named Baizhu as his left chancellor.
Baizhu was twenty-two. He was a descendant of Muqali, Genghis Khan leading commander, and a grandson of Antong, the great minister of Kublai reign.
An eighteen-year-old emperor. A twenty-two-year-old chancellor. And a court staffed end to end by his grandmother people.
For two years, Shidebala waited.
He signed what they put in front of him. He funded the temples they wanted funded. On one thing only he refused to bend, and that was Baizhu.
In the autumn of 1322, the chief minister fell ill and died. Twenty-six days later, the grand empress dowager died too.
In one month, both shadows were gone.
That October, the emperor promoted Baizhu to right chancellor and left the left seat empty. A single chancellor, aged twenty-four, holding the whole Secretariat.
The emperor once asked him whether any minister today would dare to remonstrate the way Wei Zheng had done under the Tang.
Baizhu answered with a proverb: water is round in a round bowl and square in a square one. A ruler who listens produces ministers who speak.
One Code of Law
In the second month of 1323, the court issued a book called the Dayuan Tongzhi, the Comprehensive Institutions of the Great Yuan.
It was not a revision. It was the first real attempt to give the dynasty a single legal code.
For more than a century, Mongol rule over northern China had run on accumulated case rulings, administrative regulations and edicts, stacked in the Secretariat in bundles that contradicted each other.
Renzong had ordered a compilation and died before it was finished.
In the first month of 1323, Shidebala had the draft read aloud to the assembled ministers, article by article, and ordered the regulations issued since 1315 folded in.
The finished code held 2,539 articles: 717 case rulings, 1,151 administrative regulations, 94 edicts of amnesty, and 577 ordinances.
Its structure followed the Taihe statutes of the Jin dynasty, the previous northern empire. In plain terms, it was an attempt to govern the steppe conquest with the legal machinery of the Chinese state.
Two months later came a second reform, and this one touched every farming household in the Yangzi delta.
It was called the assisted corvee law.
The rule was simple. For every hundred mu of private farmland, three mu were to be registered as official land. The harvest from those three mu did not go to the treasury. It went to whichever household was due to serve a labour obligation that year. Officials were forbidden to touch it.
For a farmer, the tax was never the worst thing. The corvee was. A tax had a number. A labour order had none. A document arrived, and a man was on a riverbank hauling a barge or in a post station feeding horses, while his fields went to weeds.
The new law pushed that open-ended burden back onto the land, and onto the men who owned the most of it.
That same year, the emperor cut the annual grain shipment from the south by two hundred thousand shi, after Baizhu pointed out that the sea route quota had multiplied since Kublai day. The extra levy on the Huai and Yangzi regions, added under the disgraced chief minister, was cancelled with it.

He also abolished the empress dowager household agency, a body with more than sixty subordinate offices, and ordered a review of every agency created since 1294.
Confucian scholars who had been sidelined for twenty years were called back. Zhang Gui, Wang Jie, Wang Yue, Wu Cheng. When the court wanted Yu Ji, messengers went to Sichuan and missed him, went to Jiangxi and missed him again, and finally found him in the Wu region tending a family grave.
A government chased one scholar across half of southern China.
The Monks in the Tent
Through the spring the reforms moved. In the sixth month, the wind turned.
The emperor was at Shangdu, sleeping badly. Some men were worried about him. One man was more worried about himself.
His name was Tieshi.
Tieshi was the chief censor, and he commanded the Left and Right Asud guards. The Asud were Alans from the Caucasus, resettled east after the Mongol western campaigns and enrolled as hereditary imperial troops. They were hard soldiers, and they answered to their commander rather than to the throne.
An empire built on conquest never has one army. It has several, each with its own origin, its own language and its own patron.
Tieshi carried three identities at once. He was the adopted son of the dead chief minister. He was the brother of an imperial consort. And he was the brother of the empress Sugeshili.
A favourite of the throne, in charge of the palace guards, with a family debt to collect.
Baizhu began reopening the old cases. A currency fraud case was revived. The surviving son of the dead minister, Baljisin, was executed, along with two senior officials. The ancestral stele of the minister was pulled down, his titles stripped, his patents of rank cancelled. Another son, Sonan, was dismissed.
The name of Tieshi had been on an amnesty list. In the sixth month, it came up again.
The official history says he heard this and grew afraid, and out of that fear came a plan.
Around the same time, a group of Tibetan monks came to the camp and advised the emperor to hold a Buddhist ceremony to avert misfortune, and to proclaim a general amnesty along with it.
Baizhu turned on them. You want gold and silk, he said. Now you want to shelter criminals as well.
The sentence travelled. By the time it reached Tieshi, it had become a promise that the executions would continue.
On the second day of the eighth month, Tieshi sent a man north.
The man rode to the Tuul River, to Prince Yesun Temur, a grandson of the crown prince Zhenjin, who had been commanding troops on the northern frontier for years.
The message was blunt. We are going to act. When it is done, you will be emperor.
Yesun Temur neither agreed nor arrested the messenger.
He waited.
The Knives Outside
Later that month, the emperor left Shangdu for Dadu.
The Yuan court moved twice a year. Shangdu, built on the grassland edge, for the summer. Dadu, built on the site of the old Jin capital, for the winter.
The whole government travelled with the emperor: the Secretariat, the censorate, the guard, the clerks, the kitchens, the horses. Four roads linked the two capitals, each with post stations at fixed intervals. A courier could cover the distance in two days. A column of carts took much longer.
That road was the weakest point in the system. A court in transit is a court without walls.
The camp stopped for the night at Nanpo, some twenty li out.
By regulation, the inner ring of the night watch belonged to the imperial bodyguard, ten thousand men in four rotating shifts. The outer ring belonged to the Asud.
That night, the Asud took their orders from Tieshi.
Sixteen men were in the plot. The minister of war, the minister of agriculture, the son of the dead chief minister, Sonan. Names that had all passed through the same purge list.
They went to the tent of Baizhu first.
The record gives one line. Baizhu was killed. He was twenty-four, and he had been sole chancellor for less than a year.
He had spent that year reopening cases nobody else dared to open. The men he was investigating were sitting in the camp, forty paces away, holding the outer ring.
Then they went to the tent of the emperor.
Tieshi went in himself. Shidebala died on his couch. He was twenty.
Nobody in the camp raised an alarm. No unit broke formation. It was done so cleanly that it looked rehearsed, and it probably was.
By dawn, the imperial seal was on its way north.
A seal is a state. Where the seal goes, the government goes. Whoever holds it can issue orders in the name of a man who is no longer alive, and the clerks downstream will obey.
In the ninth month, Yesun Temur took the throne on the Kerulen River and declared the era name Taiding.
Tieshi was paid. Chief censor, minister of war, minister of agriculture, one title after another.
A month later, the payments turned into arrests.
The new emperor ordered Tieshi, the privy councillor Yesun Temur, Sonan and the rest seized for regicide. They were executed and their families wiped out. The remaining conspirators were killed or exiled.
Sixteen men. Not one survived.
In the Roman world, the same lesson had been taught more than a thousand years earlier. In 193, the Praetorian Guard murdered an emperor and then auctioned the throne in their camp to the highest bidder. The buyer lasted sixty-six days.
Guards who learn they can choose a ruler do not stop choosing.
The histories give two explanations. One is that a new ruler had to punish regicide to be seen as legitimate. The other is that he needed the witnesses gone.
Both are recorded. Neither can be proved.
Nobody Won
The event has a name in Chinese: the Nanpo Incident.
It was the first time in Mongol history that subjects killed their own sovereign.
It was not the last time the throne changed by force. It was the first time the change was dressed up as a private arrangement between a guard commander and a frontier prince.
Shidebala was given the temple name Yingzong, the Brilliant Ancestor, and a long, dignified posthumous title. His grave cannot be identified today.
Yuan emperors were buried without mounds, in a valley called Qinian, and the ground was levelled afterwards. A twenty-year-old emperor does not even have a stone to point at.
His reforms went faster than they came. The assisted corvee law was hollowed out within a decade, as the set-aside fields were swallowed by powerful households or quietly sold. By the 1340s the labour obligation was being assessed on land again, and the men who owned the least land carried it.
The code survived only in fragments, preserved partly through a companion compendium of administrative documents, partly through later collections of regulations. A dynasty that had finally written down its law lost the author of that law within six months.
What survived was the shape of the thing. Officials in the 1340s still cited articles from 1323. The Ming, who drove the Yuan out in 1368, kept the same habit of compiling statutes and case rulings side by side, and their first code borrowed the arrangement.
Baizhu was dead. The old chief minister faction was dead. The new emperor had killed every man who put him on the throne.
A space opened at the centre of government.
It did not stay empty. It was filled by the only thing left that could fill it: whoever commanded troops.
Yesun Temur reigned five years and died at Shangdu in 1328. That year, Dadu and Shangdu each proclaimed a different emperor. The two courts fought a war. In the five years between 1328 and 1333, five men held the throne, some for a month, some for fifty days.
Then came Toghon Temur, who reigned thirty-five years and rode out of the Jiande Gate one night in 1368 as the dynasty ended.
Forty-five years separate that night at Nanpo from that gate.
On the grassy slope at Nanpo, the tents came down in the morning and the procession continued south. Travellers on the road saw the same banners, the same outriders, the same imperial carriage.
Only the man inside changed. And after that year, he changed very often.