Vol. 1 · No. 336 December 2026
Wednesday, December 2, 2026

Tan Daoji: The General Who Counted Sand as Rice

His army had no grain and the enemy knew it. So he had his men measure sand all night by torchlight, calling out the tally, with a little rice scattered on top, and in the morning the Wei scouts reported that the Song camp was well supplied.

In the eighth year of the Yuanjia era, outside the walls of Licheng in Shandong, a Southern Song army camped for the night with no food left.

The men were hungry. Beyond the camp stood the cavalry of the Northern Wei. Scouts had come back during the day with a report that the enemy knew about the empty granary and was moving closer.

Word was also going round the camp that a deserter had crossed to the Wei lines the night before and told them everything.

Then torches were lit in front of the command tent.

Soldiers carried out a long row of rice sacks and opened the tops. The rice inside was white. Another party took up counting sticks and called out the tally, one measure after another, loud enough to carry, tipping a measure into each sack as they called it. They kept at it until dawn. By then the sacks stood in rows, full to the neck, a layer of white rice shining on the surface in the torchlight.

Wei scouts lay in the dark and watched for half the night.

At daybreak they reported that the Song camp was well supplied.

The Wei army did not pursue.

Under the rice there was sand. Only the top layer was grain, scattered from what little was left.

The man who gave the order was Tan Daoji.

Three Orphans of Jingkou

Tan Daoji was born at Jingkou, the town on the south bank of the Yangtze that is now Zhenjiang, though his family came from Jinxiang in Shandong.

His parents died when he was small. The official biography gives two characters for it and moves on. Everything after that he had to earn himself.

He had an older brother, Tan Shao, and a sister, and the three of them grew up leaning on each other. Jingkou was the home of the Beifu army, the force that had fought at the Fei River in 383. By the end of the Eastern Jin, that army had become the personal following of one man, Liu Yu.

In 403 a general named Huan Xuan forced the emperor to abdicate and took the throne. In the second month of the following year Liu Yu raised troops at Jingkou, on the stated grounds of restoring the dynasty and in fact to take the army into his own hands.

The three Tan siblings joined him.

Tan Daoji was then in his early twenties.

For the next dozen years he fought under Liu Yu: against Huan Xuan, against the rebel Lu Xun, against the Southern Yan. He rose to general. Liu Yu judged men well, and on his deathbed he left a verdict on this one: Tan Daoji has ability and judgment, but no great ambition, not like my brother, who would be hard to control.

Ability without ambition. In plain words: useful, and not dangerous.

That verdict saved him once. It also killed him.


Four Thousand Men Outside Luoyang

In 416 Liu Yu marched north against the Later Qin.

Tan Daoji went as the spearhead. The advance went well. Xuchang, Chenggao, Luoyang, one after another. At Luoyang the defending general surrendered, and the Song army took more than four thousand prisoners.

The officers met. Most of them said: kill them all.

The reasons were practical. Four thousand prisoners slow a march. Released, they become soldiers again. Killed, their bodies could be piled into a mound of victory, the kind that was raised in full view of an enemy so that he would think twice.

This was standard practice in ancient warfare. Bai Qi buried four hundred thousand men at Changping. Xiang Yu buried two hundred thousand at Xin an. Both are in the histories.

Tan Daoji refused.

He said that the campaign was against a guilty ruler and for the relief of the people, and that the day for it was now.

All four thousand were released and sent home.

The official record notes the result: the peoples of the frontier were moved and pleased, and men came to join him in numbers. In the passes and the towns of the west, word went round that this army did not kill men who had surrendered.

It was not the sort of thing that went into a tally of heads. It took no city.

But people kept telling it.

Sand and Rice

In 430 the emperor ordered a northern campaign.

Liu Yu had been dead for eight years. Northern Wei held the lands south of the Yellow River, and the two states pushed at each other along that line. Tan Daoji was given command of the expedition.

In a little over twenty days he fought more than thirty engagements, and won most of them. His army reached Licheng, near modern Jinan.

Then the trouble started.

A Wei general named Shusun Jian took cavalry around behind him, cut the supply road and burned the grain that was coming up.

At the same time the Wei army attacked Huatai. Its commander held out for months, ran out of food, and was taken when the walls fell. Ten thousand men surrendered.

Tan Daoji had a strong city in front of him and no grain behind him. There was only one thing to do.

A white robed general riding out of camp in a carriage - Chinese historical figure illustration

The danger in a withdrawal is not slowness. It is that the enemy learns there is nothing left to eat. Just then, some of his own soldiers ran to the Wei camp and told them.

The Wei army came after him at once.

The southern history records the night in one line: Daoji had his men count sand by torchlight and scattered the little rice that remained on top, and at dawn the Wei army concluded that his supplies were ample and did not pursue.

A counting stick was a bamboo tally, one stick to a measure. Measure, call the number, lay down a stick. All night the calls went on, and what they were measuring was sand.

The next morning he changed the way he left.

The whole army put on armour and formed up outside the camp. He himself wore white, took his seat in a carriage, and with his personal guard around him rode slowly out.

The Wei cavalry watched and did not move. What worried them was not the few thousand men they could see, but whatever might be waiting in the woods behind.

The official record ends the episode in four characters: the army returned whole.

The Wei commanders also executed the deserters who had come over, convinced that they had been sent to lure them into a trap.

After that night his name stood at its highest. In the north they painted his image to frighten away ghosts. In the capital he was promoted to one of the three excellencies and sent back to his command at Xunyang.

The title was mostly honour. The posting was not. Xunyang sat on the middle Yangtze, the seat of Jiangzhou, with Jingzhou upstream and the capital downstream. For a century and a half, whoever held Jiangzhou held the throat of the capital. Giving that post to Tan Daoji meant that the emperor still needed him.

Called Back from the Boat

To understand why he had to die, it helps to go back to the first year of the new reign.

Before Liu Yu died he entrusted his seventeen year old son to four men: Xu Xianzhi, Fu Liang, Xie Hui and Tan Daoji. Three of them were civil officials. Only one had an army.

The young emperor turned out to prefer running a market stall inside the palace and taking boat trips on the lake to holding court. In the following year the four guardians moved. Tan Daoji led troops into the palace, deposed the young man and had him killed soon after, put aside another prince who stood in the way, and brought a third son of Liu Yu from Jingzhou to the throne. This was Emperor Wen.

One thing Tan Daoji argued against: the killing of the prince. He was overruled.

Within a year of taking power, Emperor Wen had Xu Xianzhi and Fu Liang executed and sent an army against Xie Hui. The general who led that army was Tan Daoji.

He cleared the old account for the new emperor, and in doing so wrote his own name into it.

The Liu Song court changed rulers quickly and killed them quickly. After the founding emperor came a deposed and murdered son, then an emperor killed by his own crown prince, then a succession of short reigns. In a court like that, an old general with troops, a reputation and several talented sons was a thing that kept people awake.

There was one more layer. Armies in the southern dynasties were raised and paid by their commanders. Soldiers followed the man, not the state; when the man went, the army came apart. To move troops, a court first had to move a general. To feel safe, it first had to take the troops away. Tan Daoji had held Xunyang for eleven years, and that army had been built by him.


In the winter of 435 the emperor fell ill, seriously, and lost consciousness more than once.

An edict summoned Tan Daoji to court.

Before he left, his wife, whose family name was Xiang, warned him. Merit that shakes the world invites envy, she said; this has always been so. To be called to the capital now, with no reason given, is to be called to disaster.

The southern history records her words one by one, and they read like a prophecy.

He did not listen. He had led armies for years, he said, and held the frontier, and his heart had been honest; the state would not betray him.

He reached the capital. The emperor recovered.

In the spring of the following year the court sent him back to Xunyang. He had already boarded the boat. The mooring rope was still fast when a messenger came down to the landing.

The emperor had relapsed. The regent, his younger brother, feared that if the emperor died nobody could control a general with an army, and issued a summons in the imperial name. Tan Daoji was taken off the boat and handed to the judicial office.

The charge was treason. The evidence, as set out in the edict, was that he harboured doubts and ambitions, and that three years earlier he had sheltered the poet Xie Lingyun, executed for sedition.

He was killed, with several of his sons and members of his staff.

The official history says only that his sons died with him. One source gives eight, another eleven. The numbers do not agree. What is certain is that this was not the execution of one man but of a family.

At the end he pulled off his headcloth, threw it on the ground, and said: you are breaking your own Great Wall.

After the Wall Fell

When the news reached the Wei capital, the court there congratulated itself.

The line they used was: Daoji is dead, and the rest of the southerners are nothing to fear.

It was not an idle boast. For the next twenty years Wei raided south almost every year. In 450 a great army came down as far as Guabu on the northern bank of the Yangtze, and the capital went onto a war footing.

Emperor Wen climbed the Stone City and looked north for a long time. If Daoji were here, he said, would it have come to this.

He said it fourteen years after the man had died.


In the south people sang a short song about it: pity the white dove, they killed Tan of Jiangzhou for nothing.

The white dove was a dance tune of the region, with a line about the bird flying in and settling in the courtyard of a good ruler. Ordinary people used it to mourn a man killed by his own side.

He was buried at Jingkou. The local gazetteer records that the tomb of Tan Daoji stood on a hill, and that the village below took the name of the hill; a shrine to him stood there, raised by the people of Zhenjiang.

There was another shrine in Shandong, at Liangwang village near Licheng, where local people say the night of the sand took place. It was destroyed in the 1960s and rebuilt nearby in 2006.

About the Thirty Six Stratagems, one account needs settling.

The common claim is that Tan Daoji wrote the book. It does not hold. The earliest trace is a line in the History of the Southern Qi, put in the mouth of a man who lived a generation later: the thirty six stratagems of Lord Tan, and running away is the best of them. That was a saying, not a book. The Thirty Six Stratagems as it exists today was compiled between the Ming and the Qing, by an author nobody can name, and there is no evidence connecting it to Tan Daoji.

What he left is smaller than that. A proverb about counting sand. A sentence spoken at the block. A shrine on a hill in Zhenjiang.

And one night of sand.


Sixteen centuries later, people in three different places still claim that night. At Liangwang village near Jinan they point to mounds in the fields and call them the grain stores. Near Donga in Pingyin county they say the measuring was done at the foot of a hill. In Mengcheng in Anhui there is a village that took his name because his retreating army passed through.

Three places, one night.

The sand is gone. The rice is gone. What remains is a single fact: an army with no food walked home, because of the sound of counting.

Like (0)
AdminAdmin
Emperor Xian of Han: The Boy on the Throne and the Man of Shanyang
Previous 11/22/2026 06:33
Gui Youguang: The Writer Who Passed the Exam at Sixty
Next 11/22/2026 06:34

Related posts