On the rear eave platform of the Huiji gate tower, in the western barbican at Jiayuguan, there is one grey brick lying loose. It sits a finger higher than the bricks around it, and it is in the wrong place entirely: not set into a wall but resting on top of one, as though a mason had finished the fort and left the last brick there by the flat of his hand. The Gobi wind blows all year. The corners of that brick have been worn round. It has not moved.
Jiayuguan is the western gate of the Ming wall, built in 1372 where the Hexi corridor narrows to the width of a road, with the Qilian mountains on one side and the Black mountains on the other. The brick is called the brick that fixes the fort. The story attached to it has been told in that district for centuries, and it is not about a ghost. It is about a mason who calculated his materials so exactly that one brick was left over, and about how that leftover brick saved every man on the job.

A word about walls, because the European imagination and the Chinese one part company here. Hadrian’s Wall is remembered in the West as a ruin, a line in the grass, and the interest is in what it meant: an empire stopping. The Ming wall is remembered in China as a project, and the interest is in how it was built, who paid, how many bricks, and who was beaten when the count came out wrong. Rome left inscriptions naming the legion that built each stretch. China left a story about one extra brick, which is a much more domestic kind of monument.
Stories of this kind get told across the north the way Chinese urban legends get told: one particular brick, one particular gate, and an argument about the accounts that has never quite been settled.
European foundation legends tend to run on sacrifice. The master builder cannot make the walls stand, a voice tells him to wall up his own wife, and the building holds. China has that story too, and it is a grim one. But at Jiayuguan the charm is not a body. The charm is a discrepancy in the accounts. That is the difference between a legend about guilt and a legend about paperwork, and only one of them can be told at a ticket office.
The work was hard labour. The fort stands where the wind comes through from both ends of the corridor, and there are two hundred days of it a year. Water had to be carried from the river ten li away, and a man carrying two buckets up onto the wall stopped three times on the way. Bricks were fired in kilns outside the pass, three thousand to a firing. They came out too hot to hold and went straight onto barrows for three li of sand road. The wheels sank, and the men pushing them had to bend until their backs were level with the handles.
The man in charge of materials was a supervisor named Hao, sent down from the capital, about forty, with a scar across one cheek. He did not take large bribes. He collected small errors. A chipped brick was a fine. A cart a quarter hour late was a fine. The money did not go into the government store, it went into his chest, and the labourers called him Half Brick behind his back, because half a brick of fault was enough for him.
One of the labourers was a young man from Liangzhou, twenty or so, and in the third month the sole of his shoe wore through. He did not tell the supervisor, for fear of the fine, and wrapped his foot in rag and went on pushing. Seven days of that and the foot was raw, and he was walking crooked. Yi saw it and took off his own shoes and gave them to him. Wear these, he said. I am not running anywhere on this stretch. The young man remembered those shoes for the rest of his life. Nine layers of hard cloth in the sole, stitched by hand.
Yi Kaizhan was a mason by trade, the third generation of masons in his family. He could not read much, but he could count. He would stand at the foot of a stretch of wall, look up once, and say how many courses it needed, how many headers and how many stretchers. People did not believe him, and then they worked it out on the abacus and were usually wrong by three bricks or two.
That year, before the work started, the plans from the ministry were spread on a table and a crowd stood around them counting. On the third day two clerks began to argue, one saying a hundred and ten thousand, the other a hundred and eight. Yi was sitting on the doorstep smoking, and when he had finished the pipe he knocked the ash out on his heel and gave a number. Ninety-nine thousand nine hundred and ninety-nine.
The room looked at him.
Say it again, said Half Brick.
Ninety-nine thousand nine hundred and ninety-nine, said Yi. One more or one fewer, and I am wrong.
Half Brick smiled. That was the sentence he wanted. They drew up a document on the spot and got three captains to stand as witnesses. When the fort was finished, if the count did not match the figure Yi had given, one brick over meant twenty strokes of the rod, one brick short meant forty, and both meant service on the frontier.
Yi put his thumbprint on it. His apprentice was stamping his feet outside, and afterwards he asked the master how he dared name a number that tight.
A number you have calculated, said Yi, you name tight. The men who name it loose are the ones who die of loose numbers.
Then came eight months of kiln fire.
Three shifts, men resting while the kilns did not. The fuel was saxual wood brought down from the northern hills on camels, which burns hot, and the kiln walls went white. There was one accident. In the third day of the seventh firing the crown of the kiln fell in at one corner, the flame came out through the crack, and the outer row of bricks was overfired and split: three hundred and some of them.
Those could not go into a wall. Yi worked the night with his men firing replacements and broke the spoiled bricks up for road fill. He did not report the loss to Half Brick. He carried it himself.
It came out anyway. Half Brick counted the materials, found three hundred short, and sent for him. Yi said they had been overfired. Half Brick closed the ledger. The document says ninety-nine thousand nine hundred and ninety-nine, he said. You are three hundred short of it now. How do you make that up. Yi said he would fire more. Half Brick said a firing takes seven days, and the schedule was not going to wait for him.
Yi stood in front of the kiln for half an hour that day. Then he came back and said one thing to his apprentice. From now on, he said, name a number you can still make good on.
When the wall went up he did not use a ledger. He used bamboo tallies. Every thousand bricks he pushed a tally into his belt, and at the end of the day he counted the tallies and marked the total in charcoal on the wall. His apprentice called it counting the bones.
In the ninth month the wall closed.
On the last afternoon the top course was laid and the mortar struck off, and the masons stood on the rampart and looked down and said nothing.
On the ground below, one brick was left.
One. Grey, new, its edges still sharp, sitting among the broken pieces and the boot prints.
Somebody laughed, and stopped laughing halfway. Nobody started again. Twenty strokes and forty strokes were both lying on that one brick.
Half Brick came up before dark. He walked around the brick twice, crouched, and tapped it with a fingernail. The sound was solid.
There is one extra, he said.
Nobody spoke on the rampart. The wind was cracking the banners.
Yi came out of the crowd and wiped the dust off his hands onto his trousers.
It is not extra, he said. It is the brick that fixes the fort.
What does that mean.
Jiayuguan is a tiger mouth, said Yi. Qilian to the south, Black Mountain to the north, and this road between them is the mouth. If the fort does not weigh down the gate of the pass, the sand comes in, and every time it comes in the wall opens a crack. One brick has to sit on the gate. Move that brick and the fort loosens.
Half Brick looked at him for a long time. You are making it up.
Making it up or not, said Yi, three years will tell. If anything happens to this fort inside three years, I will come back and take the twenty strokes. If nothing happens, the brick stays on the rear eave of the Huiji tower and no man touches it.
Half Brick did not answer at once. He crouched again and picked the brick up and weighed it in his hands. It was heavy. It weighed exactly what the others weighed. He looked up at the sky, which was clear, and the wind came from the west with sand in it and hit him in the face.
Put it up, he said.
Four masons carried the brick up to the Huiji tower and set it on the rear eave platform. Yi held one corner himself while they set it, squared it, then stepped back three paces and looked at it.
That is how the brick stayed.
In those three years things happened at Jiayuguan. One spring a great wind came and pulled a stand of poplars out by the roots in front of the gate, and the trees fell against the foot of the wall, and not one brick came off it. In another year there was an earthquake. The watchtower inside the fort swayed and half its tiles came down, and the barbican wall opened a crack the width of a hair.
Half Brick was transferred in the third year. On the day he left he went up onto the wall alone and stood under the rear eave for a while. He did not climb up. He did not order the brick taken down.
After that it became a legend.
In the Qing dynasty a passing military officer is supposed to have disbelieved it and reached for the brick. His hand had no sooner touched it than a wind came up outside the pass and the sand hit the wall like rain, and he pulled his hand back.
In the Republican period a squad was stationed at the fort, and one soldier thought he would pry it off and have a look. The sergeant shouted him down. The thing has stood here several hundred years, he said, and who do you think you are.
In the 1950s, when the fort was repaired, the workmen took out the loose bricks one by one and replaced them. When they came to that one, the foreman said a single sentence. Leave that one.
So for more than six hundred years it has stayed where it is.
Go there now and the guides will point it out and tell it with a great deal of force. The mason calculated to the exact brick, they say, and the one left over was the will of heaven, a breath left in the fort by somebody upstairs.
It is a good version.
But at the foot of the fort there is an old mason surnamed Zhao, over eighty, who has spent his life building and repairing walls, and he tells it differently.
He says the number Yi Kaizhan calculated was ninety-nine thousand nine hundred and ninety-eight.
Then what about the extra one.
Old Zhao plants his trowel in the ground. He added it himself.
Why.
Think about it, says Zhao. If he had named ninety-nine thousand nine hundred and ninety-nine and the wall had used every one, not one over and not one short, what would he have had to say for himself. Nothing. He would have had nothing to say. With one brick left over, he has a story. That brick is not holding down the gate of the pass. It is the life he kept back for himself.
Asked who told him this, he says his master told him, and his master had it from his master, and beyond that he does not know.
The wind comes through the fort from both ends. The brick is still on the rear eave platform, a finger higher than the ones beside it, and when the wind goes past it the sound is not the same as anywhere else on the wall.