Dawn, the fourth day of the sixth month, 626. A small lake north of the Taiji Palace in the capital.
The mist had not lifted. Li Yuan, emperor of the Tang, sat in a boat with a few ministers.
Then came the sound of running feet on the bank, and armor striking against armor.
The man who stopped at the water was Yuchi Jingde, a general of the house of Qin. There was blood on him. He was still holding his spear.
By Tang law, a subject who came before the emperor carrying a weapon had committed a capital offense.
He stood still and spoke. The prince of Qin had raised troops because the crown prince and the prince of Qi were in rebellion. Both were dead. He had been sent to guard the emperor, lest the noise disturb him.
Li Yuan did not answer at once.
He looked at the ministers beside him and asked whose plan this had been.
No one spoke.
He was sixty one years old that year. Eight years earlier he had raised an army at Taiyuan. Seven years earlier he had accepted the throne in this same palace. He had reigned for nine years. Two of his sons had died that morning at the Xuanwu Gate.
The Screen With Two Peacocks
Li Yuan was born in the capital in 566, into one of the old military families of the northwest.
His grandfather, Li Hu, had been one of the eight pillar generals of the Western Wei and held the title Duke of Tang. His father inherited the title and married a daughter of Dugu Xin.
The father died when the boy was seven. The title passed to him. A child of seven, written into the register as Duke of Tang.
His mother had a sister who married Yang Jian, the man who later became Emperor Wen of Sui. That made Li Yuan a nephew of the empress, and a distant cousin of the throne.
The connection kept him in the palace as a boy. Emperor Wen gave him a post as a sword bearer, one of the guards who stood close enough to hand the emperor his blade.
His marriage came about through a contest.
His wife, who is remembered as Empress Dou, was the daughter of Dou Yi, a senior general of the Northern Zhou, and of a princess of that house. Dou Yi thought his daughter too gifted to give away carelessly. He wanted a worthy husband.
So he had two peacocks painted on a screen at his gate. Every young man who came to ask for her was handed a bow. Hit the eye of a peacock with two arrows, and the girl was yours.
Dozens came. None hit.
Li Yuan arrived late. He shot twice and put one arrow through each eye.
Dou Yi gave him the daughter.
The story is recorded in the Old Book of Tang. Whether or not it happened exactly so, it fits the shape of the man: things that other people pushed at for years fell into his hands in two shots, and neither shot was his own idea.
Empress Dou could write. She could copy the hand of Li Yuan so closely that other people could not tell the two apart. She bore him four sons and a daughter.
She died in 613, at forty five, in the far north. By then the realm was already coming apart.
Li Yuan served as governor of several provinces and as an official in the capital. He drank. He hunted. He was slow to anger, and the court thought him a man without ambition.
The Wine in the Palace
In 617 Li Yuan was fifty one and held the post of resident commissioner at Taiyuan.
Taiyuan was the northern gate. The weapons, horses and grain of the frontier were stored there. His second son, Li Shimin, was eighteen, and had already gathered a circle of men around himself: Liu Wenjing, Zhangsun Shunde, Liu Hongji. They were the sort of men who had nothing left to lose.
Li Yuan himself could not decide.
It was not that he failed to see that the Sui was finished. He saw it too clearly. The two words raise troops look light on paper. Put them on a family, and the whole family dies.
Pei Ji was the overseer of the Jinyang Palace, the residence the Sui emperor kept at Taiyuan. Li Shimin went to him, and the two of them arranged a trap.
They chose several palace women and sent them to drink with Li Yuan.
He drank. He fell asleep inside the palace.
When he woke, Pei Ji was sitting beside him. Pei Ji said: those women belong to the emperor. If this is known, it is a capital offense. The realm is already in chaos. Beyond the walls there are bandits in every direction. Guard this city and you die. Leave it and you also die.
The Old Book of Tang records the scene.
Li Yuan said at first that he could not bear to speak of such a thing. Later he stopped refusing.
In the fifth month he accused two commissioners sent by the Sui court to watch him of conspiring with the Turks, and had them killed. In the sixth month he formed a headquarters and took the title of grand general. In the seventh month he swore an oath to his army at Taiyuan.
Before he marched, he wrote a letter to the Turkish khan in very humble language and borrowed several hundred horses. His advisers told him this was a temporary expedient. He said that he knew.
West of Taiyuan the army reached Huoyi and met days of rain. The road was gone. The grain was nearly gone.
Li Yuan wanted to turn back.
Li Shimin wept outside the tent. He would not come in. He stood in the rain and said, loudly enough for the camp to hear, that this was an army of righteous purpose: forward and it wins, backward and it dissolves, and an army that dissolves on the road home is finished before a single battle.
Li Yuan called him inside and said: do as you like.
The situation that year is worth one paragraph.
The Sui emperor was far south at Jiangdu. Luoyang was surrounded by the rebel armies of Li Mi. Dou Jiande held Hebei. Du Fuwei held the lower Yangzi. The central plain was a wreck.
Li Yuan held Taiyuan. South of him lay Li Mi. East of him lay Dou Jiande. Only the west, toward the passes, was open.
He went west.
His advisers saw the point clearly. Whoever took the western heartland first held the high ground, and also held the legal fiction of serving the Sui house. Li Mi won battle after battle on the plain and never marched west. He was broken outside Luoyang. Li Yuan reached the capital without ever fighting him.
Huoyi fell. Its commander was killed. The passes into the western heartland lay open.

Two Edicts in the Capital
In the eleventh month the army entered the capital.
Li Yuan did not take the throne at once. He installed a grandson of the Sui emperor, a boy of thirteen, as emperor, declared the reigning emperor far away at Jiangdu to be retired, and took for himself the posts of grand chancellor and prince of Tang.
The step was careful. No one was killed in the city. The treasuries were sealed. The shops opened as usual.
In the third month of the following year the Sui emperor was killed at Jiangdu. In the fifth month the boy emperor issued an edict of abdication.
Li Yuan declined three times. Then he accepted.
The dynasty was named Tang. The era name was changed to Wude. He was fifty three.
The first work of a new dynasty is law.
In his first year he ordered Pei Ji and Liu Wenjing to revise the Sui code into a Tang code, and fixed the land and tax system: a hundred mu to each adult man, two piculs of grain, twenty feet of silk, twenty days of labor a year. Most of it was inherited from the Sui. The changes were small.
Small was the point. After more than a decade of war, what people wanted was for the number in the tax register to stop moving.
The second work was ancestry. He raised his grandfather to emperor and his father to emperor, and set their tablets in the ancestral temple. A family that had marched out of Taiyuan now had a place in the legitimate sequence.
The third work was to divide the army.
As emperor he made Li Jiancheng crown prince, Li Shimin prince of Qin, and Li Yuanji prince of Qi.
His method was to let all three sons command troops. The eldest held the rear. The second went out to fight. The youngest went along. That is how the realm was in fact conquered: Xue Ju and his son in the west, Liu Wuzhou in the north, and the two rival kings taken in a single day at the Hulao Pass.
But once the armies were divided, the households around each son were divided as well.
Around Li Shimin gathered Fang Xuanling, Du Ruhui, Yuchi Jingde and Qin Shubao. Around Li Jiancheng gathered Wei Zheng and Wang Gui. Li Yuanji played both sides.
Li Yuan saw it.
After 624 he tried more than once to reconcile them. At one point he proposed sending Li Shimin east to Luoyang, to fly his own banner and administer everything east of the Shan pass. Li Jiancheng and Li Yuanji objected that this would cut the country in two. The plan was set aside.
At another point he told the three of them, in the same room, that they were all his sons and that he wished to harm none of them.
A few years after that sentence, the gate happened.
The Morning at the Gate
On the third day of the sixth month, Li Shimin submitted a secret memorial accusing the crown prince and the prince of Qi of improper conduct in the inner palace.
Li Yuan read it and said that in the morning he would summon all three and settle the matter face to face.
In the morning Li Jiancheng and Li Yuanji rode through the Xuanwu Gate.
The gate closed behind them.
The Comprehensive Mirror gives the order of events. Li Shimin shot Li Jiancheng first. Yuchi Jingde and his men killed Li Yuanji. Two thousand troops from the two households attacked the gate, failed to break it, and scattered.
Li Yuan was on the lake.
Yuchi Jingde came to the bank with armored soldiers. Li Yuan asked Pei Ji whose plan this had been. Pei Ji said nothing.
He then asked Xiao Yu and Chen Shuda. Xiao Yu said: the crown prince and the prince of Qi did not take part in the rising and have no great merit, yet they were made heir and prince. The prince of Qin has covered the realm with merit and holds the hearts of the army. Make him heir, entrust him with the state, and nothing more will happen.
Li Yuan said: good. This has long been my own wish.
The line is in the Comprehensive Mirror. It may be true. It may also have been the only sentence available to him that morning.
Three days later Li Shimin was made crown prince. In the eighth month Li Yuan issued the edict of abdication.
He said that he would retire and become retired emperor.
Nine Years in a Smaller Palace
The retired emperor did not live in the Taiji Palace.
He moved to Hongyi Palace, the old residence of Li Shimin when he had been prince of Qin. It was renamed later the Palace of Great Peace. It stood west of the main palace, on low ground, and was stifling in summer.
From the eighth month of 626 to the fifth month of 635 he lived there, nine years.
In those years he had several more children. Prince Teng, born in this period, was later sent to Hongzhou, where he built the Pavilion of Prince Teng. The youngest of the sons was younger than some of the grandsons.
He drank. He listened to music.
In 630 Li Jing destroyed the Eastern Turkic khaganate and the khan was brought to the capital as a prisoner.
When Li Yuan heard, he said: the founder of the Han was besieged at Baideng and never got his revenge in this life. Now my son has destroyed the Turks. I gave the realm to the right man.
That day there was a banquet in the Lingyan Pavilion. Li Yuan played the lute himself. Li Shimin rose and danced. The two of them kept it up until late.
The banquet is recorded in the Comprehensive Mirror. A father who had lost power and a son who had taken it, sitting in one room with a lute and a dance floor, was not common among retired emperors.
In 634 Li Shimin ordered a new palace built northeast of the palace city, so that his father would have somewhere cool for the summer.
It was not finished when Li Yuan fell ill.
In the fifth month of 635 he died in the front hall of the Palace of Great Peace, aged seventy.
His will asked for a simple funeral, a tomb on the pattern of the Han and Wei, and no extravagance.
He was buried at Xianling, in Sanyuan. The tomb is rammed earth, a truncated pyramid. There are few stone carvings in front of it. The mound is not high.
When he raised his army at Taiyuan, the Turks demanded that he acknowledge their overlord, and he wrote the letter in very low language. When he entered the capital, he set up a boy emperor and waited a year before taking the throne. He reigned nine years, and then spent nine more in a low, damp, older palace on the western side.
The height of the mound at Xianling is the height his own will allowed.
One more thing may be said.
Li Shimin was buried at Zhaoling, in the Jiuzong Mountains, his tomb cut into the mountain itself. In front of it stand the six stone horses and the graves of the ministers who served him, inside a wall that takes a long walk to circle.
Xianling lies a few dozen li to the northeast: one square mound of earth, standing alone on the dry terrace north of the Wei.
The distance between the two tombs is the distance between two reigns.
One took the realm. One handed it over.