In the second month of 1125, east of a town called Xincheng, a column of horsemen came down out of the hills and cut across the road.
The wind was from the northwest and carried sand. Snow had melted and frozen again, so the ground wore a hard crust that broke under a hoof with a small sharp crack and let the leg sink half an inch.
A slow party was coming down that road toward the Sanggan River: consorts, sons, hunting hawks, several carts of baggage. In the middle of it walked a man of fifty in a plain leather coat, his hair loose, a layer of dust on his face.
His name was Yelu Yanxi. He was the ninth emperor of the Liao dynasty, and his temple name is Tianzuo, which means something like the Last Ancestor.
Four months earlier he had been camped in a mountain pocket called Jiashan, sending word to the Tangut state of Western Xia to ask for a road through. They had said yes.
He came out of those mountains with a few hundred men. The horses were so thin their ribs showed, and a day of travel cost two days of rest. People around him urged him to abandon the carts and ride hard. He would not. The carts held the last of what he had carried out of Yanjing.
Then the pursuit arrived.
The Jin general Wanyan Loushi had guessed which road he would take and had slipped east from Yingzhou to block it. The imperial carriage was caught in open country. Most of the guards had already drifted away. The rest had no stomach for a fight.
He was helped off his horse and taken.
Count from the year Abaoji took the throne, 916, and this was the two hundred and ninth year.
The Dance He Refused
Go back thirteen years.
In the second month of 1112, on the Hunting Water.
Liao emperors did not stay in palaces. They moved with the seasons and the grass, and each season had its camp. The spring camp began with a hole cut in the ice and a net. When the first fish came up, there was a banquet, and the banquet had a name: the head fish feast.
That year the chiefs of the Jurchen tribes came to stand in the tent.
The Jurchen were subjects then, split into tame and wild. The tame ones were on the Liao registers. The wild ones lived north of the Songhua River and kept their own customs. The Wanyan clan was the strongest of the wild ones. Aguda, who led them, had taken over in 1113 from a father and an uncle who had spent thirty years fighting for Liao and, on the side, swallowing their neighbours with Liao approval.
The tribute was pelts, horses, pearls, and gyrfalcons, small hunting hawks that could take a swan off the ice. Liao nobles wanted the hawks badly enough to send silver tablet envoys into the villages to collect them. An envoy with a silver tablet ate what he liked, took what he liked, and was hated for it across a whole generation.
After several rounds of wine, the emperor called on the chiefs to dance, one after another.
One by one they danced.
Then it was Aguda of the Wanyan.
He stood up and said he did not know how.
The emperor had him asked again. Still no. A third time. He stood there and looked back.
The tent went quiet.
Afterwards the privy councillor Xiao Fengxian came up and said the man was too proud, and it would be cheaper to kill him now. Xiao was brother to the favourite consort, and his words carried weight.
The emperor waved it off. He is a rough fellow, he said in effect, he does not know proper manners, he has done nothing worth killing, and killing him would only frighten the tribes that are coming over to us.
Aguda went home.
He was forty-four. The emperor was thirty-seven and had been on the throne eleven years.
Tianzuo had not had an easy inheritance either. His grandfather, Emperor Daozong, had ended his reign in a famous scandal: the minister Yelu Yixin accused the crown prince of treason, the prince was deposed and then killed, and the princess with him. Tianzuo was the son of that prince. He was brought back to court as a child only after his grandfather repented. He had grown up watching how the knives moved behind the silk curtains.
What he liked was hunting. He spent most of the year outside, and left the government to Xiao Fengxian and Xiao Delidi.
Liao had been running for nearly two centuries on a double administration. A northern office handled the tribes; a southern office handled the counties of farmers. It had worked for so long that nobody thought it could stop working.
Two years later, in the ninth month, Aguda raised a banner.
Before he moved, he gathered his people by the Laoliu River and counted them. Two thousand five hundred men. He told them, more or less, that they had spent generations as cattle for the Khitan, paying tribute, doing labour, taking beatings, and that an army was now coming to finish them, so it was better to strike first.
The first target was Ningjiang, a border town. Twenty-five hundred men against a garrison.
The court did not take it seriously.
Seventy Thousand Against Twenty
Ningjiang fell, and only then did the court send an army.
In the eleventh month, at Chuhedian, three thousand seven hundred Jurchen met a gale, put the wind at their backs and charged. The Liao force was called a hundred thousand. It came apart.
In the first month of the following year, Aguda declared himself emperor of a new state, Jin.
When the news reached the court, Tianzuo issued an edict of personal campaign. The language was savage. He would sweep them off the grass.
That winter he actually went.
His own record puts the army at seven hundred thousand. Later historians put the real number near a hundred thousand. Aguda had twenty thousand.
Twenty against a hundred should not have been a battle.
But the great army had barely left when the rear came apart. The supervising commissioner Yelu Zhangnu turned his column around and rode back to the supreme capital to put Prince Yelu Chun on the throne.
Tianzuo had to turn back.
A hundred thousand men moved west in a line so long that the forward companies had crossed a river while the rear was still pitching tents.
Aguda came after them.
At Hubudagang, twenty thousand horsemen cut in from the flank and went straight for the centre. The Liao army had no formation to speak of. Front and rear could not see each other. It broke in an afternoon.
The Liao history gives the result in one line: the army was defeated, and the dead lay in a line more than a hundred li long.
After that battle, Liao had no field army left worth the name.

Five Capitals, Four Lost
Liao kept five capitals. The supreme capital at Linhuang, the central at Dading, the eastern at Liaoyang, the southern at Yanjing, the western at Datong.
They had not been built at once. The supreme capital was the old camp of Abaoji, walled in two rings. The southern capital was Yanjing, the largest city Liao ever held, acquired in 936 when the Later Jin ceded the sixteen prefectures of the Yan and Yun passes. The western capital at Datong faced both the Tanguts and the Song. Five courts, and an emperor who spent the year walking between them.
After the winter of 1115, the five cities came down one at a time.
The eastern capital went first. The supreme capital fell in the fourth month of 1120; the siege lasted less than half a day before the deputy left in charge opened the gate. The central capital went in the first month of 1122, and it did not even need a siege, because the city had already dissolved into quarrelling factions.
Tianzuo went west from Yanjing, crossed the Yin Mountains and shut himself into Jiashan.
Jiashan is a knot of deep valleys and thick woods in the Daqing range, poor country for cavalry. He stayed there, handed the paperwork to Xiao Fengxian, and hunted. Officials who followed him into the mountains urged him to reform the army. He did not listen. Others urged him to go west and throw himself on Western Xia. He hesitated.
Down in Yanjing, meanwhile, a second emperor had been crowned.
Yelu Chun, the same prince whom Yelu Zhangnu had wanted to put on the throne, was proclaimed at Yanjing. The historians call it the Northern Liao. When word reached Jiashan, Tianzuo was so angry that he threw down the imperial seal he had carried out of the capital.
Northern Liao lasted a few months. Yelu Chun fell ill and died. His widow, Lady Xiao, took over the government. The standing army at Yanjing, the Ever Victorious Army under Guo Yaoshi, went over to the Song. The next year Jin attacked in its own name, and the city fell.
With Yanjing gone, Liao held nothing inside the Wall.
The Song had meant to profit from all this. The agreement signed at sea in 1120 divided the work: the two states would squeeze Liao together, and Song would pay Jin what it had been paying Liao. Song marched twice on Yanjing and was thrown back twice by a dying garrison. Jin took the city. Then Jin stripped it, moved the population, the treasury and the workshops north, handed Song four empty walls, and sent the bill anyway, one million strings of coin a year for the tax revenue of a city that no longer had any.
Two years later, Jin came south.
Two Hundred Riders West
In the year Yanjing fell, one man got out of the city and rode to Jiashan to present himself to the emperor.
His name was Yelu Dashi. He was of the imperial clan, a man who had passed the examinations, read Chinese, and could shoot from the saddle.
Tianzuo received him with an accusation: I am out here running for my life, and you set up an emperor in Yanjing. How do you answer that?
Dashi answered flatly. If we had not crowned someone, the people would have scattered. Crowning someone was holding the south for Your Majesty.
The emperor did not kill him. He did not trust him either.
In 1124, Tianzuo got help from a Shiwei tribe of the Yin Mountains and decided the time had come to counterattack and take back the lost prefectures. Dashi told him not to. Jin was at its strongest, he said; going out now was throwing men away; better to hold, train, and wait.
The emperor went anyway.
Dashi concluded that this man would never restore anything, and feared what a suspicious court might do to him. One night he rode out with two hundred men.
He went northwest, crossed the Black River, and met the chief of the White Tartars, who gave him four hundred horses, twenty camels and some sheep. He came to Kedun, a frontier garrison town in the far northwest where the border troops were kept out of ordinary campaigns. There was fodder there, and horses.
At Kedun he called in the officials of seven prefectures and the chiefs of eighteen tribes. He spoke about what his ancestors had built, and about how Jin had come on step by step. They raised a little over ten thousand men.
For the next ten years he moved west. He passed the Uyghurs, whose ruler first welcomed him and then changed his mind. He crossed the Tianshan and fought several hard actions.
In 1132 he took the title of emperor at Emil, and called himself Gur Khan, the khan of khans. Chinese histories call his state Western Liao.
In 1134 he fixed his capital at Balasagun on the Chu River.
In 1141, on the plain of Qatwan, his army met the Seljuk sultan Sanjar, who had come east with a coalition of something like a hundred thousand men. Dashi had fewer than thirty thousand, and part of those were Qarluq Turks who had asked him to come. He packed his main body into the mouth of a valley and let the enemy crowd in before he struck. the army of Sanjar came apart, and his wife was taken.
Central Asian chronicles now had a new name for the people from the east: Qara Khitai, the Black Khitan.
The court at Balasagun kept Liao forms. Reign titles were struck in Chinese, coins carried Chinese characters, the offices had the old names. A dynasty that could not hold a single city in China kept its paperwork alive by the Chu River for another eighty years.
Western Liao lasted eighty-six years in all. The Mongols under Jebe ended it in 1218.
The Name That Stayed
Tianzuo was taken to the Jin supreme capital.
Emperor Taizong of Jin stripped his title and made him Prince of the Seaside.
He died in Jin territory some years later. The sources disagree about the year, and the disagreement has never been settled.
The ancestral temples, the palaces and the tombs of Liao were wrecked in the fighting. The walls of the supreme capital filled with sand and disappeared, and were not dug out again until the twentieth century. The site is in Bairin Left Banner in Inner Mongolia: two walled cities, north and south, a circuit of a dozen li, the platforms of the palace still under the grass.
What is strange is that the name of the dynasty did not disappear with the walls.
In Central Asia and Persia they called the Khitan Khitai. The word travelled west and turned into Cathay, the name that Marco Polo used and that Coleridge put in a poem about a pleasure dome, and it turned into Kitai, which is still what Russian calls China today.
A dynasty that ended in 1125 left its name inside other people languages.
What became of the Khitan themselves is written very quietly. Some went west with Dashi. Some stayed inside Jin and were enrolled in the military households, taking the surnames Yila and Shimo. Later the Mongols lumped Khitan, northern Chinese and Jurchen together and called all of them Han. By the Ming the name was mostly a word in books.
In Yingzhou there is a wooden pagoda, the Sakyamuni Pagoda of Fogong Temple, built in 1056. In the year the emperor was captured it had stood for sixty-nine years.
It is still standing. Five storeys and six eaves, sixty-seven metres, all timber, not one iron nail.
East of Xincheng, where the horses came down out of the hills, the ground is farmland now.
Maize goes in during spring. It comes off in autumn. Every so often a plough turns up a grey Liao roof tile, very hard, with a pattern on the edge.