In the fourth month of 1233 the gates of Kaifeng opened.
The Mongol army came in through the southern gate and rode north up the imperial avenue, and the sound of hooves on stone carried all the way to the palace wall. Every door along the street was shut. There were eyes behind the cracks.
Three days earlier the commander holding the city had opened it, loaded the empresses, the imperial clan and the families of the officials into several dozen carts, and sent them out. The carts were said to be going to negotiations. They were going to the enemy.
A man of forty-four was pushed along with the crowd leaving the city. He had nothing worth taking. He had a bundle of paper.
On the paper were the things he had been writing down for years: who had written which poem, who had passed the examinations in which year, who had starved inside the siege, whose family of seven had come out as one child. The characters were small and densely packed and the corners were worn soft.
His name was Yuan Haowen. The Jin dynasty, the state he served, had not formally ended that year, but it was close. The emperor had run to Caizhou. Half the court had run with him. The rest were waiting to see what the Mongols would do with the city.
The months before the fall had been like the slow collapse of a mud wall rather than a single crash. Grain prices rose three times a day. Students at the National Academy sold the library to buy rice. The palace musicians dispersed. The Ministry of Rites stopped keeping its records. Men who went up on the wall came back and said the campfires outside ran to the horizon.
The Grave by the Fen River
To explain this man, start with a bird.
In 1205 he was sixteen and travelling from Xinzhou to Bingzhou to sit the prefectural examination.
At the Fen River he met a hunter. The man said that he had netted a wild goose that morning and killed it. The other goose had torn free, circled, called for a long time, refused to leave, and then dropped out of the sky and died on the ground.
The boy bought the dead bird, buried it on the bank, piled up a small mound of earth and set up a stone with two characters cut into it: goose grave.
The people with him laughed. What was there to cry about.
He wrote a poem to the tune of Moyu Er. It begins: I ask the world, what is this thing called love, that it makes the living promise to die with the dead.
That song was copied for eight hundred years. In the twentieth century a novelist put it in the mouth of a murderous woman in a cave, and every Chinese reader knew it already.
But the boy who wrote it did not spend his life on love.
Thirty Years in the Examination Halls
He was born in Xinzhou, in the north of Shanxi, and given away at seven months to his fathers younger brother, who had no son.
Four years old, learning characters. Seven, writing verse. Eight, composing poems. At eleven he followed his adoptive father to a post in Jizhou. At fourteen he was sent to Lingchuan to study under an old scholar named Hao Tianting, and he stayed six years.
For a northern scholar in that century there was one road out: the examinations.
The Jin system tested verse composition, classical exegesis and policy essays. The examinations ran for days. Candidates were walled into cells of matting, took in their own food, ink, brushes and candles, and did not come out until it was over. A pass list held a few dozen names. Tens of thousands of men competed for them.
He sat the exams from twenty to thirty-one, and he failed more than once.
In between, the Mongols reached his home county and put it to the sword. His elder brother died there. He took his mother south into Henan, first to Fuchang, then to Dengfeng.
In 1221, at thirty-two, he finally passed.
That same year he was accused of benefiting from a rigged examination, and named as a member of a faction. He was so angry that he refused to take up a post.
Three years later he sat a second, higher examination and entered the Historiography Office as a compiler.
Then came postings outside the capital: magistrate of Zhenping, of Neixiang, of Nanyang. Nanyang was a great county with more than a hundred thousand soldiers and civilians. The local gazetteer says his administration was notably good. He asked for tax relief in a drought year, opened relief kitchens, brought back families that had fled, and cut a canal to bring water to the fields. He wrote a line that he seems to have meant: to hold office and dodge the difficult work is a lifelong disgrace.
By then a reasonable man would have stopped. He was in his forties. He had a post, a reputation, and a name that the literary minister Zhao Bingwen had made for him by praising two of his poems as the best of the age.
But he had worked in the Historiography Office. He knew what the archives of a dynasty look like: the court diary, the daily record, the veritable records, compiled layer by layer, locked in cabinets.
He also knew those cabinets are the first thing to burn.
He had begun, quietly, years before the siege, to keep his own copies.

The Year the Capital Fell
In 1231 he was recalled to Kaifeng as an assistant director in the Secretariat.
The next year the Mongols surrounded the city.
The siege lasted from winter into spring. The grain ran out. They ate the horses first, then the leather armour, then other things. The histories record that a bushel of rice cost two ounces of silver, and then they record a phrase that appears in Chinese histories whenever the worst has happened, and which this article will not describe.
Inside the siege he did something that looks, at first, like a literary hobby. He copied down the poems of the people around him, one after another.
It was not a hobby. It was salvage.
In the first month of 1233 the emperor abandoned the city and went east to Caizhou. The commander left behind staged a coup, killed a group of ministers, installed a puppet, and opened the gates.
In the fourth month the Mongols came in.
Yuan Haowen was taken out under guard. He was held at Liaocheng for two years, then moved to Guanxian, where he lived on the help of friends.
The road from Kaifeng to Liaocheng is a few hundred li and it took more than a month. What he saw on it went into poems: prisoners lying along the roadside, cart trains heading north, burned villages, fields gone back to weeds. That group of poems is known later as his poems of mourning and ruin, and they are the heaviest thing he ever wrote.
He also wrote a letter to the Mongol chancellor, Yelu Chucai.
The letter did not ask for anything for himself. It contained a list of fifty-four names.
A List of Fifty-Four Names
The letter is titled To the Chancellor Yelu.
It says: for more than a century this state has produced men of learning. Now the state is gone and these men are scattered among the people, some working as craftsmen, some teaching, some starving. He wrote out their names one by one, fifty-four of them, and called them talents of the age, and asked the chancellor to find a way to keep them alive.
Yelu Chucai was a Khitan, a descendant of the imperial house of the Liao, and he ran the paperwork of the Mongol court. He spent his career doing things of this kind: arguing the Great Khan out of massacring cities, setting up tax offices, putting scholars into administration.
Several of the fifty-four lived. Some served the new dynasty. Some helped compile the history of the one that had fallen.
Yuan Haowen did not serve.
Not that nobody asked. Yelu Chucai was well disposed to him. Kublai summoned him, before Kublai was khan, and he went, and what he talked about was not his own appointment. He asked for relief from military levies for scholar households, and for government by civil principles. Then he went home.
His own explanation was a phrase: when the state falls, the history must be made. Somebody has to keep the record of a dynasty that no longer exists, and the person keeping it is better off belonging to neither court.
Around fifty he went back to Xinzhou. He built a house at Hanyan village and beside it a pavilion, and called it the Wild History Pavilion.
Wild history, in Chinese, means unofficial history: what private men write, as opposed to what the state compiles. In his hands it was not a term of contempt. Official history lives in the state archive, the archive lives in the capital, and when the capital burns the archive goes with it. A private man with paper can hide what he writes in a wall.
So he gave himself a job: collect this dynasty, piece by piece.
For twenty years he travelled. He found surviving ministers and asked what they had seen in the court. He found the sons of dead men and copied their family records, tomb inscriptions and letters. He went to monasteries and copied steles. He went to book dealers and bought damaged editions.
The manuscripts came to more than a million characters. He assembled the poems of more than two hundred writers of the Jin into a collection called Zhongzhou Ji, and in front of each poet he put a short life: courtesy name, birthplace, examination year, office, and how the man ended. The title means central plain, the old name for the Chinese heartland, and he chose it on purpose: the Jin, who had come out of the northern forests, were claiming that name for themselves. That book became one of the primary sources for the official history of the Jin.
He also wrote a private account of the siege of Kaifeng. That book is lost, but the official history quotes it at length.
He never finished the last thing he wanted: a history of the Jin of his own. The drafts were still unfinished when he died.
He was also writing about poetry. Thirty poems on poetry, each one judging a writer of the past, became a landmark of Chinese criticism. They argue that plain speech is new forever, that after the ornament is stripped away you see what is true, and that one famous poet wrote with his heart but not with his voice.
He was also, in those years, a teacher.
When Kaifeng fell he brought a child out of the city with him. The boy was the son of a friend, Bai Hua, who had been separated from his family in the collapse. On the road the child caught an epidemic fever and burned with it, and Yuan Haowen held him day and night and would not sleep, and got him through.
That boy grew up to be one of the four great playwrights of the Yuan, the author of Rain on the Phoenix Tree and Over the Wall.
A Pavilion Called Wild History
In the autumn of 1257 Yuan Haowen died in a lodging house at Huolu, aged sixty-eight. His body was taken back to Xinzhou and buried at Hanyan village.
His students did what he had asked. They set up a small stone and cut seven characters into it: the tomb of Yuan Yishan, poet.
No official title. No rank. No mention of the dynasty he had served. The highest office he ever held was magistrate and a junior directorship. The largest thing he left behind was a pile of paper.
The pavilion is still there at Hanyan village. Six pillars, a pointed roof, twelve metres high, rebuilt by later generations. Behind it is a vegetable plot.
The three characters of the name were themselves a statement. The official history sat in the state office in the capital, and the capital had been taken and the office had burned. He moved the history office into his own yard and spent twenty years filling it in, room by room.
What he made is more detailed than an official history. The little lives in Zhongzhou Ji say things like: orphaned young, served his mother well. Or: was a county magistrate, quarrelled with a superior, resigned. Or: died when the city fell.
Sentences like that do not get into official histories. They are the reason two hundred people who would otherwise have vanished are still, at least, outlines.
And the line about love is still sung. Most of the people singing it do not know that the man who wrote it spent the second half of his life on something else entirely: pulling a list of names out of a fire.