In the Taiping Xingguo years of the Northern Song, the compound of Kaibao Temple in the eastern capital was the loudest place in the city.
Saws going through timber, axes biting into mortise joints, rope squealing over pulley blocks, and several hundred men calling the rhythm for hauling. In the middle stood the scaffold, tier on tier, and at the top of it you could no longer make out individual people.
The tower would be thirteen storeys, eight sided, all wood, and when it was finished it would be the tallest thing in the capital.
The man in charge of it was called Yu Hao.
He came from Hangzhou. He was a duliaojiang.
That word is hard to translate. It does not mean architect in the modern sense, and it is not an official rank. A duliaojiang was the head of a building project: he designed it, calculated the timber, hired the labour, set the schedule, drew the plans and marked out the dimensions on the ground. In Song China the great construction works, from palaces to monasteries, were carried by men like this. They held no rank at all. On site, what they said went.
Yu Hao was the most famous of them.
The tower was built to hold relics of the Buddha. Kaibao Temple stood in the north east quarter of the city, an older foundation that had been repaired and renamed in the reign of the first Song emperor. Under the second, a tower was wanted that would settle the skyline.
A Tower That Would Not Stop Moving
The best way into Yu Hao is through a tower that would not stand still.
The story is in the Dream Pool Essays of Shen Kuo.
When the Qian family ruled the two Zhe provinces as the state of Wuyue, they built a wooden pagoda at Fantian Temple in Hangzhou. It was not tall, only two or three storeys. The prince of the Qian house climbed it and felt it move.
He asked the builders why it moved.
They said: the roof tiles are not on yet. It is light at the top, so it moves.
So the tiles went on. He climbed it again. It moved exactly as before.
The builders had nothing left. They heard that Yu Hao was in Hangzhou, but Yu Hao was not a man you could simply send for. So they arranged something quieter. The wife of the chief builder went to see the wife of Yu Hao with a pair of gold hairpins and asked her, as one woman to another, why a pagoda sways.
Yu Hao heard the question and laughed.
He said: that is easy. Lay boards on every floor, and when the boards are down, nail them tight. Then it will not move.
They did it. The pagoda stood firm.
Shen Kuo adds the explanation. Once the boards are nailed, the floors bind to each other above and below; the six faces lock together like a box. A man walking on the boards presses the whole box shut, and it cannot move.
Everyone bowed to his mastery.
The man who wrote that story down, Shen Kuo, is worth a moment. He was a senior official, an astronomer, a mathematician and a diplomat, and in later life he lost his post, lost his wife, and retired to a garden outside Zhenjiang where he wrote a book of notes. The Dream Pool Essays records magnets, fossils, printing, rainbows and the price of rice. It also records a carpenter answering a question about a swaying pagoda. Shen Kuo thought engineering was worth writing down, which is the only reason we know the story at all.
The interesting part of that story is not the technique. It is the gold hairpins.
A man who could answer a question that every builder in Hangzhou had failed to answer could only be approached sideways, with a gift, through his wife. That is what craft was worth in that world.
Wooden towers are hard for a reason worth stating.
A brick pagoda can carry its weight in its walls. Each course presses on the one below, and pressure makes it stable. Wood cannot work that way. Timber pressed hard against timber splits. A wooden tower holds together through joinery: the end of a beam is cut into a tenon, the tenon goes into a mortise cut in a column, and the two lock. Above them, bracket sets spread the weight of the roof outward and pass it down the columns in steps.
A great pagoda is hundreds of thousands of pieces of timber locked to one another, without a single nail. It stands because of the bite between each pair of pieces, and because of its own weight.
A structure like that is flexible by design. Wind comes, it sways, the wind goes, it returns. So the test of whether such a tower is sound is never one floor. The test is whether the whole thing has been locked shut.
Laying boards on every floor and nailing them tight does exactly that. It turns a stack of storeys into one box.
A Model on the Floor
The Kaibao Temple commission came from the emperor himself.
He wanted a tower in the capital. Craftsmen were pulled in from every province, and painters were brought in to take part in the design. Yu Hao was put in charge.
He began by making a model.
The tower was eight sided and thirteen storeys, tapering as it rose. The model was built and set up indoors.
Among the people attached to the project was a painter named Guo Zhongshu.
Guo was the great master of ruled line painting, the school that drew buildings with a straight edge, line by line, so that the proportions of a painted pavilion would survive inspection. It was said of him that he could draw a palace and get the number of windows exactly right.
That is not as strange a pairing as it sounds. In a tradition where painters drew architecture to scale, a painter could read a set of proportions as a builder reads them. Guo was, in effect, the second engineer on the job, and he had the eye for it.
Guo looked at the model and said the rate at which each storey shrank was wrong.
Yu Hao did not take offence. He recalculated, changed the dimensions, and only then began work.
Someone later wrote two lines about it: the painting manual of the Guo family is weighty for a thousand years, the craft of Yu Hao is unmatched in his generation.
A craftsman willing to hear a painter say your proportions are wrong tells you something about the trade. In that world right and wrong could be calculated. Whoever had it right was listened to.
The tower went up.
Leaning to the North West
On the day it was finished, everyone looked up.
And then someone noticed. The tower was crooked. Not slightly. It leaned, clearly, towards the north west.
A brand new tower, the tallest in the capital, and it was leaning.
Word went round. Some said the calculation was wrong. Some said the foundation had settled. Some said the man had a name he did not deserve.
Someone asked Yu Hao about it.

What he answered was written down by Ouyang Xiu, in the Record of Returning to the Fields.
The ground in the capital is flat, he said, and there are no mountains. But there is a great deal of north west wind. Let the wind blow on it for a hundred years and it will straighten itself.
After that nobody had anything to say.
Ouyang Xiu added two comments of his own. The first: such was the fineness of his care. The second: since this dynasty began, there has been one carpenter, and this is the man.
To this day, he wrote, carpenters take the rules of Master Yu as their standard.
One thing needs saying about that answer.
Modern historians of architecture do not believe a leaning tower can be straightened by wind. The engineering does not work. Researchers who have looked at the story treat it as a tale polished by later writers to show how clever he was. It shows that he thought about wind load. It does not show that wind did the job.
So there is a plainer explanation for the lean, and it may be the true one: he knew the ground there would settle unevenly, and he built in a tilt the other way to allow for it.
Either way, one thing in that sentence is solid. When he built, he was thinking about what the building would be in fifty years, in a hundred.
There is a hard detail behind this, which is that in Song China the building trades were hereditary. A boy grew up among timber, smelling sawdust and tung oil, and by his teens he could look at a beam and see that the grain ran wrong. A family could hold a method for generations and never write it down, because the method lived in the hands of the men who had it.
An ordinary builder thinks about the floor he is on: will this course hold, will this joint close, can we get the tiles on before the rain.
He was thinking about where the wind would have pushed it a century later.
Three Scrolls Called the Timber Classic
Yu Hao wrote a book in three scrolls, the Timber Classic.
It was the first manual of wooden construction in China. It did not discuss auspicious siting. It did not discuss how a building should look. It dealt with how to set a dimension, how to calculate a proportion, how to join a member to another member.
The book is lost. What survives is a few passages copied by Shen Kuo.
The most important of them divides a house into three parts.
Above the beams is the upper part. From the ground to the beams is the middle part. The steps are the lower part.
A building, in other words, is three calculable bands, each with its own rules of proportion: the upper part is set by the height of the middle part, and the middle part is set by the depth of the lower part.
That is the first time in Chinese architectural writing that a house was broken into segments that could be measured and computed.
Shen Kuo added a note of his own, and it sounds faintly regretful. In recent years, he wrote, building work has become more exacting, and the old Timber Classic is largely out of use. Yet nobody has written a new one. This is a task for a good craftsman, and no one has taken it up.
That was written in the Northern Song. The book was already going out of use in the Northern Song.
Eventually it went altogether.
What it contained did not. At the end of the Northern Song, Li Jie compiled the Yingzao Fashi, the Treatise on Architectural Methods, the most complete building code China produced before modern times. Thirty four chapters, more than three thousand entries, fixing the labour, materials, dimensions and methods for every kind of structure. Much of what is in it is thought to come down the line that began with the Timber Classic.
The Timber Classic cut a house into three bands. The Treatise cut a whole building into rules, labour quotas and material quotas. The same idea runs through both: take something that lives in the hands and turn it into something that can be calculated, checked and argued about.
One Tower Burned, One Tower Left
The wooden tower at Kaibao Temple stood for some decades.
In the Qingli years a lightning strike burned it. A tower made of timber burns like a stack of firewood.
On the same ground people later built a pagoda of glazed brick. The brick is brown, and from a distance it looks like iron, so people called it the Iron Pagoda. It is still standing in Kaifeng, nine hundred years on, tapering as it rises, eight sided, thirteen storeys.
If you go and look at it, you will not find Yu Hao.
There is no name on it. Not one character mentions the men who designed it or built it. Song dynasty craftsmen did not sign their work. That was the rule.
But one sentence in the Record of Returning to the Fields left him a place. The man who wrote it was Ouyang Xiu, one of the great prose stylists of the dynasty and a senior minister. He wrote inscriptions all his life, for grand tombs and great men.
He wrote twenty odd characters for a carpenter.
Six of them say: such was the fineness of his care.
There is one more thing Yu Hao probably never imagined.
His tower held together through joinery, with no nails: tenon into mortise, one piece biting another, and the whole weight of the structure pressing itself shut. China built this way for thousands of years.
The wooden pagoda at Yingxian was finished in 1056, seventy years or so after the tower at Kaibao Temple. It stands a little over sixty seven metres, five storeys with six roofs, twenty four columns inside and out, every piece locked to the next by joinery and bracket sets. Earthquakes have come and gone. It is still standing.
A thousand years later, foreign visitors came and looked at that pagoda and at Foguang Temple and asked the obvious question. Without a single nail, how does a timber tower sixty metres high stay up?
The answer was in the Timber Classic. The book was gone.
So they could only stand there and look, and count the bracket sets, one tier at a time.