Two men stood in the hall, and each of them said the ox was his.
One said he had bought it as a calf from a neighbouring village three years ago and raised it. The other said his own cow had dropped it, and that everyone in the village knew it.
The stories were equally complete. The witnesses were equally numerous. Several magistrates had already heard the case, and none of them had been able to end it.
The new magistrate listened, and then said one thing. Say no more. I have it.
Then he ordered the rope untied.

The years were the Yuanhui era of the Liu Song dynasty, somewhere between 473 and 477, and the place was Jiankang.
Jiankang is Nanjing today, and it was then the capital of a state that held the south bank of the Yangtze. The palace compound stood in the north, the Qinhuai river ran along the south, and between them lay markets, temples and several hundred lanes.
The county was not administered like other counties. It was a capital county, which meant that the emperor lived next door.
That made it one of the worst postings in the empire. The powerful were stacked on top of each other there. When a relative of a third rank official broke the law, do you arrest him. Arrest him and a message arrives tomorrow. Do not arrest him and the statute is still sitting there in plain view. Men sent to that office either rose quickly or were destroyed quickly.
The man sent in those years was Gu Xianzhi, courtesy name Sisi, from Wu commandery. He was in his late thirties.
Both the History of the Southern Dynasties and the Book of Liang carry his biography, and the two texts are nearly identical. The case of the ox appears near the beginning of each.
Why nobody could decide it
The record gives the reason in eight characters. Both households matched in statement and in proof, and the successive magistrates could not decide.
Statement and proof. The two sides had drawn level on both.
This is a common and very difficult shape for a case in any premodern legal system. An ox is a living thing. There is no deed, no transfer document, no brand, no registration number. Whoever holds the rope holds the animal, for the moment.
If you want to prove the ox is yours, you have surprisingly little to work with.
You can describe its markings. But markings live on the animal, and anyone who has looked at it can describe them.
You can describe its temper. But temper is known only by keeping it, and the other man is keeping it now.
You can produce villagers to testify. But villagers will say whatever the household they live nearest to needs them to say.
You can give the date, the place and the middleman of the purchase. But all three can be learned by asking around, and a man who has decided to steal an ox has usually asked around.
In cases of this kind the magistrate is not deciding which man is lying. He is deciding between two accounts that both hold together, with nothing in his hands that breaks either one.
Several magistrates had been stuck exactly there.
The standard next steps were two. Interrogate harder until one side confesses, which produces a conviction and occasionally a false one. Or stall, leave the animal in official custody and wait for one party to give up, which produces two households that both hate the court.
Gu took a third route.
What he did
The History of the Southern Dynasties says he reviewed the two statements. Reviewed, went over them again, in the way a senior official re-reads a file he has been handed.
Then he said to the two households: say no more. I have it.
And then the order. Untie the ox and let it go where it goes.
An ox with no rope on it does one thing.
It goes home.
Not home in the sense of the person who ought to own it. Home in the sense of the yard it is walked into every evening, fed in, and tied up in overnight.
The ox went straight back to the house of the original owner.
The thief confessed on the spot.
The hole in the trick
It is worth being clear about why this worked, and equally clear about why it might not have.
The reason it worked is unglamorous. Cattle know routes.
An ox is led back and forth every day of its working life. It remembers the path from the field to the village, the slope in front of a particular gate, the smell of its own stall. That memory is not built in a day. It is built over hundreds of repetitions. So when the rope comes off and nobody is pulling, the animal walks the way its days have always gone.
And where its days have gone is usually where its ownership has been.
But there is an obvious gap here, and the histories do not discuss it, though it must have existed.
What if the ox had been taken long enough ago that it had already learned the thief’s yard.
What if the thief lived next door, and the animal turned into his gate first.
What if both households had been feeding it and leading it out, so that both routes were familiar.
Any one of those, and the test fails. And it fails in the worst possible way, because it looks so convincing. An ox walks home by itself, the whole hall watches it, and who is going to argue after that.
So the real strength of the method is not that the animal is clever. It is that the method converts a question that cannot be settled into a result that can be seen.
When statements and witnesses are level, either side can go on insisting. When the ox walks, both households are standing there watching the same thing, and neither of them can say you are lying.
That is the most practical kind of intelligence in premodern judging. It does not find the absolutely correct answer between true and false. It finds a scene that neither of two stubborn men can contradict.
What the city called him
The case earned Gu a name. Contemporaries called him enlightened, which in that context meant something closer to uncanny.
The same passage adds that his exposure of hidden wrongdoing was usually of this kind.
But the more important sentence comes immediately after. As for requests from the powerful and the cruelty of senior officials, he applied the law straight, and yielded to nobody.
That is what he was actually known for in the capital.
The history also preserves a detail that is easy to miss and hard to forget. Men drinking in the capital, when the wine was especially clear and good, called it Gu Jiankang. The name of the magistrate had become a word for good wine, meaning clear and fine.
Few officials in these histories end up as a brand.
Hengyang, and the unburied
The ox belonged to the end of the Liu Song. When the Qi dynasty took over he was posted as interior minister of Hengyang.
Hengyang had been through years of epidemic. More than half the population of the commandery had died. Coffins had become unaffordable, and households that could not afford one wrapped the dead in reed matting and left them at the roadside.
That is grim in any era. In a fifth century commandery in the middle of an epidemic it was also a mechanism. The dead by the road kept the disease on the road.
The first thing Gu did was to instruct every county under him to find the relatives of the dead and have them buried. Where a household had been wiped out entirely, he paid for the burial out of his own official salary and sent his staff to do it.
That is money out of his own pocket, in a post that did not pay much.
The same biography records another local custom. Mountain villagers who fell ill believed an ancestor was responsible, and would open the grave, split the coffin and wash the bones of the dead with water, a rite they called expelling the haunting.
Gu did not simply ban it. He explained, patiently, that the living and the dead are separate matters and that illness does not come from the dead. And the custom changed.
Put those two next to the ox and the man becomes clearer. He was not administering cases. He was administering the conditions of other people’s lives, which is a much larger and much less dramatic job.
The house in Yuyao
Later he was put in charge of Kuaiji commandery.
A man named Lü Wendu was a favourite of the Qi emperor. He had built himself a large residence in Yuyao and behaved there as he pleased.
Gu arrived in the commandery and had it demolished the same day.
When Lü’s mother died and he came home for the funeral, every official in the commandery and its counties went to offer condolences. Gu did not send word.
Lü hated him for it and, in the end, could not touch him, because there was nothing to charge him with.
It is one of the sharper scenes in the history: a favourite comes home to bury his mother, a whole prefecture queues at the gate, and one man does not go. Not because he failed to work out the consequences. Because he worked them out and did not go.
The tax at the ox ford
Gu also left one substantial piece of policy writing, the longest passage in his biography.
At Xiling there was a tax station called the ox ford, where teams of oxen hauled boats across a barrier in the river. The official rate was three thousand five hundred cash a day. A garrison commander named Du Yuanyi noticed that Wuxing had suffered a bad harvest while Kuaiji had done well, and that traffic was double the normal level. He petitioned to double the rate, estimating an extra million a year, and asked that four other crossings be taken under direct state management as well.
The emperor sent the petition down to Kuaiji for comment.
Gu wrote against it at length. The ford, he argued, had not been established in order to raise revenue. It existed because the river was dangerous and men could not haul boats through by strength alone, and the oxen were there to save lives and cargo. Both travellers and the state found it convenient, which is why people paid without complaint. Later managers, wanting credit for revenue, began blocking alternative routes and adding surcharges.
He then did the arithmetic. Wuxing had failed harvests for years and this year was worse. People were moving from areas without grain toward areas with grain. The old rate had only just been reduced and had not yet recovered. Doubling it now, on what basis.
And he quoted an older text: better a minister who embezzles than a minister who extracts.
The reasoning is that a man who steals from the treasury takes a limited amount, while a man who squeezes the population takes from everyone at once.
Coming from a magistrate who had just settled a theft case by untying a rope, the position is consistent. He prosecuted the theft of one ox. He also opposed the taking of a million cash under the name of the state.
Animals in the dock
There is a long European tradition that makes an instructive contrast here.
Between the thirteenth and the seventeenth centuries, courts in France, Switzerland, Italy and elsewhere actually tried animals. Pigs that had killed children were formally charged, defended by counsel, convicted and hanged. Rats and locusts were summoned to appear and ordered to leave a district within a stated period, with a lawyer appointed to argue on their behalf. The records survive in parish and municipal archives, and the scholar E. P. Evans collected them in a 1906 book that is still cited.
Those proceedings rested on the assumption that an animal can be a defendant, that it has obligations, and that a court has jurisdiction over it. Gu Xianzhi’s proceeding rests on the opposite assumption. The ox is not a defendant and has no obligations. It is a witness, and what makes it useful is precisely that it has no interest in the outcome.
The distinction matters for how a reader should take the story. This is not a Chinese version of trial by ordeal, where the outcome is left to the supernatural and nobody has to explain it. Gu’s test produces an observable fact, and the fact is produced by animal habit. It is crude evidence. It is evidence.
Western readers of Chinese detective fiction know this world through Robert van Gulik, the Dutch diplomat who in the 1940s turned an eighteenth century novel about the Tang statesman Di Renjie into a series of English mysteries. The magistrate in those books solves cases by observation, by staged situations and by understanding how people and things behave. The ox walking home is that method with the least possible apparatus: no interrogation, no informant, no document. One animal, one untied rope, one road it has walked every day.
The road home
The road the ox took was short. A few hundred paces through the lanes of a capital city, and it was at a gate it knew.
What became of the ox is not recorded. It probably worked a few more seasons, was sold or grew old, and died. It never knew that it had been the entire evidence in a case, or that the few steps it took gave a magistrate the word enlightened in an official history.
Gu Xianzhi lived a long time. He was born in 436 and died in 509, at seventy four, having reached the honorary post of grand master for splendid happiness.
The Book of Liang sums him up in four characters: by nature especially clear and upright.
Which is a plainer thing than enlightened, and probably more accurate.
A man who settled a case by letting an ox go free spent his working life doing something else. He buried people whose families could not afford a coffin. He argued a tax increase out of existence. He demolished a favourite’s new house on his first day.
The ox was only the first difficult thing that happened to him.