In the reign of the Qianlong emperor, a house outside the north gate of Hangzhou stood empty for seven years. The door boards were new and the lock was old, and the rust on the lock was thicker than the paint on the door. In the late afternoon the sun came in through the gap and lit a thin skin of dust on the floor of the main room. In that dust there was a single line of footprints. They came in from the doorway, crossed the room, and stopped under the beam.
The story is kept in a collection called Zi Bu Yu, which means roughly Things the Master Would Not Discuss. The master is Confucius, who declined to talk about prodigies, feats of strength, disorder, and spirits. The author was Yuan Mei, a Hangzhou man who served as a county magistrate, resigned at thirty-three, bought a garden in Nanjing, and spent the rest of his life writing poetry, printing books, and eating extremely well. He took the refusal of Confucius and used it as the title of a book of ghost stories, which is the kind of joke a man makes when he is very comfortable.
Yuan Mei lived in the same century as Horace Walpole, and the two of them were doing the same thing from opposite ends of the earth. In England the polite position was that ghosts belonged to the servants and the superstitious past, and the Gothic novel was invented as a guilty pleasure for people who said they did not believe in any of it. In China the polite position was that a gentleman did not discuss such things, and Yuan Mei filled seven hundred pages with them. The educated world has always insisted that it has outgrown this material. The educated world has always been the best customer.

There is one more thing worth knowing before the story starts, because it explains everything the woman does. In a great many Chinese ghost stories, the dead are not free. They hold a post. A death by hanging, or by drowning, or by poison, creates a vacancy, and the ghost in that vacancy cannot leave until somebody else fills it. This is why the Chinese ghost so often offers a bargain instead of a threat. It is not hunting. It is recruiting.
Western ghosts are usually trying to finish something. They want a grave, a name, a murderer caught, and once the business is settled they go still. A Chinese ghost of this kind has already finished. What it has is a shift that will not end. You will find this staffing logic all over Chinese ghost stories, and it produces a very particular kind of horror, because the most frightening thing in the room is not a monster. It is a colleague who wants to retire.
Note also where this one happens. Not a tomb, not a mountain, not a temple at the edge of the map. A house in a city lane, with neighbours on both sides and a wall that people knock on. That is the ordinary setting of Chinese urban legends, and the ordinariness is the point. The dead here do not live somewhere else. They live next door, and the rent is low.
Cai was a failed scholar of that neighbourhood. He sat the provincial examination three times and three times his name was not on the board, and after the third he stopped sitting it. He opened a small school at the mouth of the lane for seven or eight children, teaching them to read, and the fees were enough to eat on, with something left over for books. He was twenty-nine, unmarried, and had worn the same blue cotton robe for four winters. The cuffs had gone shiny. The robe was clean.
The oldest boy in the school was eleven and the son of a tofu seller. The fee came twice a year, once in cash and once as half a pig. Cai never asked him to write one character more than the others and never let him write one character less. One winter the boy hands cracked open and he could not hold a brush, so Cai cut the sleeve off his own robe and wrapped the small hands in it. The next morning the mother brought a board of tofu. Cai accepted it and salted it down in a jar.
He went to look at the house because of the price. The broker was asking thirty percent less than the other houses in the lane, which was not a discount but a warning. Cai stood in the doorway for a while and then asked the only question that mattered. Has anyone died here.
The broker smiled. The gentleman is a scholar, he said. Scholars are not afraid of that sort of thing.
I asked whether anyone has died here.
Three, said the broker, and stopped smiling. The first two owners died of illness. The third, he said, and paused to wipe his forehead with the back of his hand, the third one went up on a rope from that beam in the night.
The lane told it in more detail afterwards. The third owner had been a clerk in a silk shop, twenty-six or so, who lost the shop money at a gambling table and did not dare go home on New Year Eve. His wife was carrying a child. She came and knocked on the door on the first morning of the year, and the door was barred from the inside. Cai heard all of this only after he had moved in, and the people telling it watched his face while they spoke. He asked one question. What became of the child. Nobody could answer it.
Cai looked at the beam. It was a thick old fir beam, black with smoke and years.
Take another twenty percent off, he said.
The broker agreed at once. He agreed a little too fast, the way a man agrees when he is afraid the buyer will think again.
On the day he moved in, he brought two things with him. A box of books and an old pot. The pot had belonged to his mother and had three cracks in the bottom, mended twice. He set it on the stove and lit a fire to test the flue, and the flame drew hard and the smoke went straight up the chimney. A house that had stood empty for seven years should not have had a chimney that clear.
Then the neighbours came out. An old woman stood on her own threshold with a child on her hip and called across half the lane that the house could not be lived in.
I cannot afford any other, Cai said.
It cannot be lived in, she called again, and her voice was not steady. At night somebody knocks on the wall. Three times. Then a pause. Then three times more. Half this lane has heard it.
Cai bowed to her with his hands together. Thank you, he said. I sleep heavily.
The first night nothing happened. He copied half a scroll by lamplight, went to bed at the fourth watch, and rose at dawn to find a skin of dried ink on the inkstone.
The second night there were footsteps. Not inside the house. Outside, coming up the lane, slow, and then stopping at the door. They stopped for a long time. Cai put down his brush and waited. At cockcrow the footsteps went away.
On the third night the visitor came in.
Cai was marking a pupil exercise. The door hinge made a small sound, the sound a person makes when they know how to enter a room. He did not look up. He finished the page first, crossed out a character written as sun where it should have been say, wrote the right one above it, and only then raised his eyes.
A woman stood in the main room. About thirty, in a blue robe washed almost white, her hair pinned at the back. There was no colour in her face and no anger in it either. Around her throat ran a thin line, the kind a cord leaves when it has been there a long while.
She had her hands folded in front of her. She inclined her head slightly. She was extremely polite.
Cai set his brush on the rest. Sit down, he said.
She did not sit.
Sir, she said, I have lived in this house longer than you have.
I know, said Cai. So let me ask first. What do you want.
She did not answer that. She raised one hand and pointed at the beam.
He followed her hand. A loop hung down from the beam. The rope was new, pale hemp, and the opening was about the width of his two hands together. It hung just above the lamp shadow and turned very slowly, as though somebody had let go of it a moment before.
The woman stepped back half a pace, clearing the way to it, and made a small gesture with her open hand. After you, sir, she said. Her voice was soft.
Cai looked at her for a long time.
Then he stood up, walked to the beam, lifted one leg, and put his foot into the loop.
She froze.
Wrong, she said.
No, said Cai. He took his foot out and stood straight and looked at her. You were wrong once and there was no second time for you. I can be wrong once and still take my foot back.
The room was so quiet that he could hear the charred tip of the wick crumble.
Her face came loose by degrees. First the mouth, then the eyes, then the shoulders. She lowered her head and laughed, once, quietly, the way air goes out of a person who has been holding it.
Seven years, she said. Everyone who came here either ran or wept. The ones who wept still climbed up in the end. I was waiting for a man who would put his foot in and take it out again.
She stepped back. She stepped back again, until she was at the door. Sir, she said, the house is yours.
The door opened and closed. The lamp was still burning, and the loop was still hanging from the beam.
Cai carried a stool over, stood on it, and untied the rope. It was hemp, quite new, knotted at one end, and slightly slick, the way a thing gets when it has been handled for years. He rolled it up, put it in the kitchen stove, and watched it burn. The flame went from yellow to red, from red to a colour with no name in it, and then collapsed.
In the morning he opened the school as usual. The children reciting travelled out of the window and down the lane.
The old woman was on her threshold again. Sir, she called across the lane, did anyone knock on the wall last night.
No, said Cai. Would you like to come and listen tonight.
She waved him off, a little embarrassed.
He lived in that house for twenty-six years. Pupils came and went and came again. He married a widow, and she bore him a son, and the son studied and became a provincial graduate. The house was repaired twice. The old fir beam was never changed.
Someone asked him once whether he had been afraid that night.
Yes, he said. My legs were shaking.
Then why did you put your foot in.
I wanted to see, he said, how it meant to kill me. Once I had seen it, I was not afraid of it any more.
The man who asked did not believe him and thought he was boasting.
One of his pupils later became a clerk in the Qiantang county office. He said that the master, reading the Analects aloud, came to the line about knowing what you know and not claiming to know what you do not, and stopped. He said, that is the hardest sentence in the book. What frightens a man is not ignorance. It is knowing a thing and pretending not to. Then he read the next line and explained nothing.
Others told it differently. Some said there had been no rope at all and that Cai had seen one because he expected to. Some said the woman was a cousin of his who had died young and had come to test him. These versions went around Hangzhou for a while. None of them is more credible than the others.
The house was pulled down in the end and the timber sold. The carpenter who bought the beam said that when he split it open there was a dark mark running down the heart of the wood, as though a cord had been pressed into it for so many years that it had grown inward.
He sawed the beam into two lengths. One became a square dining table. The other became a coffin. The table was used for a great many years. The coffin stood in the woodshed and was never sold.