Before dawn on the fourth day of the sixth month of 626, a few men stood in the gateway of the Xuanwu Gate in Chang an with their horses and said nothing.

The sky was not light yet. This gate in the north wall of the palace city was the way into the imperial precinct. The crown prince, Li Jiancheng, and his brother the prince of Qi, Li Yuanji, were expected that morning. They were coming to answer a charge before their father, the emperor: that they had behaved indecently inside the palace.
They did not know that the second brother was waiting inside the gate.
Hoofbeats came up the road. The two princes rode into the passage.
The first arrow was shot by Li Shimin. He hit the crown prince, and the man came off his horse.
Li Yuanji ran into the trees. Yuchi Jingde, the general, went after him.
Ten minutes later two thousand picked troops from the two princely households arrived outside the gate and attacked it. The men inside pushed the doors shut, and one officer held the bar alone.
Then Yuchi Jingde climbed the gate tower with two heads and held them up for the troops to see.
The soldiers dispersed.
The Morning of the Fourth Day
Li Shimin was twenty seven that year.
He was the second son of Li Yuan, the founder of the Tang. He had been with his father when the family rose against the Sui, had taken the capital at nineteen, and had been made prince of Qin at twenty. For the next six years the great campaigns of the new dynasty were his. He broke the armies of the northwest, held the passes, and in one battle at Hulao took Dou Jiande prisoner and forced Wang Shichong to surrender. At twenty four he was made General of Heavenly Strategy, a rank above the princes, with his own staff and his own administration.
His household held Fang Xuanling, Du Ruhui, Yuchi Jingde, Qin Shubao and Cheng Zhijie, and a whole planning office besides. He founded a literary academy and gathered eighteen scholars into it.
A second son with an army, a staff, and half the military record of the dynasty.
Li Jiancheng was the eldest son of the principal wife. By the rules of inheritance, the throne was his.
Europe had the same rule and the same exceptions. Where a younger son wins the wars, the rule of eldest takes all becomes a problem that is settled either by patience or by violence. In China, in 626, it was settled the second way.
Both sides were preparing.
The Comprehensive Mirror records that the crown prince moved first. He proposed that Li Yuanji lead an army against the eastern Turks, and that the operation be used to strip Li Shimin of his best officers and troops. A second plan was to ambush Li Shimin at the farewell banquet for the expedition.
Word of this came to Li Shimin from an official in the crown prince household.
Li Shimin went to his father and laid a counter charge: that Jiancheng and Yuanji had behaved indecently in the palace. Li Yuan said that the three of them should come before him in the morning and settle it to his face.
The next morning was the Xuanwu Gate.
There is only one version of what happened that day, and it is the version the winner approved. Li Shimin later asked several times to see the court diaries, the records that emperors were not supposed to read. The diarist Chu Suiliang refused him. In the end Fang Xuanling edited the Veritable Records of the two reigns and presented them.
So the Xuanwu Gate we can read is the Xuanwu Gate written by the man who won. Anyone reading this history has to hold that fact in mind.
What followed that day is less often told.
The sons of the two dead princes, ten boys in all, were executed, and their names were struck from the imperial clan register. Nothing was left of either line.
The Comprehensive Mirror gives the result in a few sentences and does not describe how it was done. The historians were restrained here, and passed over it quickly.
In the same year Li Shimin did the opposite thing. He took the staff of the two households into his own service in large numbers. Wei Zheng and Wang Gui, who had been the crown prince advisers, were among them.
Killing every nephew and employing the old staff, in the same year, by the same man.
On His Knees Before His Father
After the killing, Li Shimin did not go and take over the palace. He went to his father.
Li Yuan was on a boat on the lake inside the palace grounds. Yuchi Jingde, in armour and carrying a spear, walked to the edge of the water.
The emperor was alarmed. Who is rebelling today, he asked, and what are you doing here.
Yuchi Jingde said that the prince of Qin had raised troops against the crown prince and the prince of Qi because they had rebelled, and had sent him to guard the emperor against alarm.
Li Yuan turned to his ministers and asked what was to be done.
Xiao Yu and Chen Shuda said that Jiancheng and Yuanji had not been part of the original rising, had no achievement in the field, and had plotted against a brother whose merit filled the empire. Now that the prince of Qin had executed them, and the whole country was with him, the emperor should make him crown prince and hand him the government.
Li Yuan said that this had been his own intention all along.
Then the Comprehensive Mirror gives six characters. Shimin knelt and sucked at his fathers breast, and wept for a long time.
Scholars have argued about that gesture for a thousand years. Some read it as an old northern custom of acknowledgement between father and son. Some read it as a son begging a father for protection when there is nowhere left to stand. Some read it as an addition by the court historians, to make a coup look less like a coup.
Whatever it was, the meaning was plain. I am not a son who murdered his brothers and seized a throne. I am a son who was pushed to this.
Three days later he was made crown prince. Two months after that Li Yuan abdicated and became retired emperor.
The following year the reign was renamed Zhenguan.
A Mirror
There was a man at that court named Wei Zheng.
He had been on the crown prince staff. Before the Xuanwu Gate he had urged Jiancheng to act first and remove Li Shimin. When Li Shimin had him brought in, he asked why Wei Zheng had set one brother against another.
Wei Zheng answered that if the crown prince had listened to him, this day would never have come.
The men in the room stopped breathing.
Li Shimin did not kill him. He promoted him.
For seventeen years Wei Zheng argued with the emperor in open court, more than two hundred times. On one occasion he left the emperor with no way to answer in front of the whole court. Back in the inner palace, Li Shimin lost his temper and said that one day he would kill that peasant.
The empress Zhangsun heard him. She withdrew, put on full court dress, and came back to bow in the courtyard. Li Shimin asked what she was doing. She said that she had heard that a bright ruler makes for blunt ministers, that Wei Zheng could speak as he did only because the emperor was wise, and that she did not dare fail to congratulate him.
The anger went out of him.
The empress died in 636 at thirty six.
After her death Li Shimin built a high terrace in the palace gardens and often went up to look west. West was the Zhaoling tomb, where she was buried.
Once he took Wei Zheng up with him and told him to look. Wei Zheng screwed up his eyes and said that his sight was poor and he could see nothing.
Li Shimin pointed. Wei Zheng asked whether that was the Zhaoling tomb.
Li Shimin said it was.
Wei Zheng said that he had assumed the emperor was looking at the Xianling tomb. If it was Zhaoling, he would have seen it long ago.
Xianling was the tomb of Li Yuan, the father. The point was exact. You look every day at the grave of your wife, and how often do you look at the grave of your father.
Li Shimin wept, and had the terrace pulled down.
In 643 Wei Zheng fell ill. Li Shimin went to see him and betrothed his daughter, the princess Hengshan, to the son of Wei Zheng. He pointed to the girl and told the dying man to look at his new daughter in law.
Wei Zheng could no longer speak.
When he died the emperor suspended court for five days and wrote the epitaph himself. He said that a man may use bronze as a mirror to set his clothes straight, history as a mirror to see the rise and fall of states, and other people as a mirror to see his own mistakes. He had kept three mirrors, he said, and now one of them was gone.
That is where the story usually ends. There is a second half.
Not long after, the crown prince Li Chengqian was caught plotting and was stripped of his position. The investigation implicated two men, Hou Junji and Du Zhenglun, both of whom Wei Zheng had recommended. Someone also said that Wei Zheng had been showing his memorials to the court historians, so that his own record would look better.
Li Shimin was furious.
He ordered the stone pulled down. It was the tombstone he had written himself. The betrothal between Wei Zheng son and the princess was cancelled.
The stone lay on the ground at Zhaoling.
Two years later, in 645, Li Shimin led a campaign against Goguryeo in Korea. It went badly. The losses were heavy and the army withdrew. On the road home he said that if Wei Zheng were alive, he would not have made this journey.
He sent men to Zhaoling and had the stone set up again.
Six Horses
In 630 the Tang destroyed the Eastern Turkic khaganate. The chiefs of the northwest came to Chang an and gave Li Shimin a title: Heavenly Khagan.
In the same year the histories record a number. Twenty nine people in the whole empire were sentenced to death. Grain cost three or four coins a peck, and travellers could go months without carrying food.
That figure has been questioned ever since. It says at least this much. The early Zhenguan years were good years.
He died at the Cuivei Palace in the Zhongnan mountains in the summer of 649, at fifty one.
He was buried at Zhaoling.
On the north face of the tomb hill a stone corridor was built, and in it were placed the six warhorses he had ridden.
Each has a name.
Tele Biao, a yellow horse with a dark muzzle, ridden against Song Jingang. Qingzhui, a pale dappled grey, ridden at Hulao against Dou Jiande. Shifachi, pure red, from the same battle. Saluzi, purple red, hit by an arrow in the chest at the siege of Luoyang, with the man pulling the arrow out still carved beside it. Quanmaogua, a dun horse with a black mouth, hit by nine arrows in one battle. Baitiwu, black with four white feet, ridden for a day and a night in pursuit of Xue Rengao.
Six horses in a row, which is a life.
In 1914 two of them, Saluzi and Quanmaogua, were broken into pieces, crated, and shipped abroad. They are in a museum in Philadelphia. The other four were stopped at the docks and are now in the Beilin Museum in Xi an.
Six horses cut in stone, two in one country and four in another.
He had them carved to stand guard at his tomb. It probably did not occur to him that a thousand years later they would be displayed in two places.
He also wrote a book for his son Li Zhi, called the Model for an Emperor, on how to hold the throne. In it he listed his own faults. Silk and pearls never out of sight. Palaces and terraces built again and again. Dogs, horses and falcons fetched from far away. Travels that emptied the countryside of provisions.
That son was not easy to arrive at. In 643 the crown prince was deposed for plotting, and the fourth son, Li Tai, campaigned openly for the succession. Li Shimin saw what it meant and said that to name Li Tai would be to tell the empire that the throne could be competed for. He sent Li Tai away and named the ninth son, Li Zhi.
The Comprehensive Mirror says that on the day he deposed Li Chengqian he drew a knife and tried to cut himself, and that Zhangsun Wuji held his arms. A man who had killed at the Xuanwu Gate almost cut his own throat in his own hall, over a son.
That list of faults was his own inventory. It was also his own verdict.
A man who killed his brother, pushed out his father, and then governed so well for twenty three years left his son a single sheet of paper, and on it were the things he had done wrong.