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

Liu Yan: The Tang Minister Who Counted an Empire on Horseback

At eight he was presented to the emperor as a prodigy. At sixty-five he was ordered to die in a river town. In between he rebuilt the canal that fed Changan, turned salt into two thirds of the revenue of the Tang, and knew the price of grain across the empire within the time it took to eat a meal. The inventory of his house came to two cartloads of books.

In the seventh month of 780, an envoy arrived at Zhongzhou, a small prefecture on the upper Yangtze, carrying an imperial edict.

The man in the house received it. He did not argue. He did not beg.

His name was Liu Yan. He was sixty-five. Thirty years earlier, the grain, the salt and the coin of the Tang empire had all passed under his brush. The price of rice in the capital had been pushed down by the fleets he sent up the canal, boat after boat.

Now he was an exile in a river town, holding the title of prefect. On the day the edict came, he had not yet been relieved of it.

The official histories give his death in six characters: the emperor sent a eunuch to order him to die.

After a death like that, the house was inventoried. The clerks wrote down two items. Two cartloads of miscellaneous books. A few bushels of rice and wheat.

Tang official on a grey horse lifting a riding crop as if counting figures, attendants with a ledger, morning light - Chinese historical figure illustration

The Prodigy at Eight

Liu Yan was born in 716 in Nanhua, in Caozhou. His father had been a county assistant. The family was ordinary.

In 725 the emperor Xuanzong performed the great sacrifice on Mount Tai. Along the route, officials competed to present poems and congratulations. A boy of eight submitted an essay on the eastern sacrifice and had it carried to the imperial lodge.

The emperor read it and found it strange. He called for the chief minister, Zhang Yue, to test the child on the spot. Zhang Yue asked a few questions, then turned to the throne and said three words: this is a state treasure.

The boy was taken back to the capital and given a post in the imperial library, as a corrector of texts.

It was a small office, checking characters against old editions. An eight-year-old in official robes sitting in the library was a sight the staff came to see.

Later the emperor teased him. You are a corrector, he said. How many characters have you corrected?

The boy answered: every character under heaven can be corrected. There is only one that cannot. The character peng. The character for faction.

The hall laughed. The anecdote comes from a Tang collection of notes rather than from the official record, and it may be polished. It survived for a thousand years because it was exactly right. This man would be destroyed over the character for faction.

He grew up in the capital, studied, took office, and moved up. He served as magistrate of Xiaxian, where the assessment noted that he never once sent men out to beat the tax out of people, and the grain still arrived on time. Then Wenxian, with the same result.

Without the An Lushan rebellion, he would probably have ended as a decent prefect and died in bed.


The Ledger on the Canal

In 755 An Lushan rose. Eight years later Luoyang and Changan had both been burned, the heartland was ruined, and the south was still intact.

The problem was simple. The grain was in the south. The capital was in the west. The road between them was the canal, and the canal had silted up, broken and been abandoned during the war.

The records of that period say the great granaries were empty and even the rats and sparrows went hungry. Rice in the capital sold at a thousand cash a bushel. The palace could not be fed on schedule.

From 762 onward Liu Yan was put in charge of transport. The first thing he did was not issue orders. He walked.

He went from the Huai and the Si rivers up to Heyin, Gongxian and Luoyang, section by section, looking at where the channel had silted, where it ran shallow, where the boatmen were stealing and where the clerks were taking bribes. Then he wrote a long letter to the chief minister, Yuan Zai, setting out the problems and the remedies one by one.

Yuan Zai held power at the time. He read the letter and handed the whole canal system to Liu Yan.

The first thing he changed was the boats.

Previously a single vessel went all the way from Yangzhou to Changan. The Yangtze is wide, the Bian canal is narrow, the Bian is shallow, the Wei is fast. A boat that survived one stretch broke on the next. He split the route: Yangtze boats do not enter the Bian, Bian boats do not enter the Wei. Each section used its own hulls and its own crews, and cargo was unloaded and reloaded at the junctions.

The worst stretch was the Sanmen gorge, where the Yellow River is squeezed between rock walls with a single pillar of stone standing in the current. Boatmen said seven or eight ships in ten were lost there. Officials would rather lose their posts than take a convoy through.

He had two thousand boats built, flat-bottomed transports of a thousand bushels each. Ten boats made a group, with hired polemen and oarsmen paid in cash by the state instead of conscripted labour.

That detail matters more than it looks. Conscripted boatmen were beaten, chained and blamed when a hull was lost. Paid boatmen stayed, and the boats survived.

He built locks along the Bian to hold and release water so that vessels could pass in stages.

In the first year, four hundred thousand bushels reached the capital region. At the peak the figure was one million one hundred thousand.

By his own reckoning, that first year was forty groups of ten boats, each hull loaded to the gunwale. It was the first spring in two decades when the granaries of Changan were full.

The histories record the scene when the first fleet arrived. The emperor had music played and went out to the Dongwei bridge to meet it. He said to Liu Yan: you are my Xiao He.

Xiao He was the minister who fed the armies of the founding emperor of the Han while the fighting went on. It was the highest thing an emperor could say to a man who handled money.

Six Million Strings of Salt Money

The canal fed Changan. Salt paid for everything else.

Every premodern state taxed salt, because everyone needs it and no household can make its own. France ran a salt monopoly so hated that it is usually listed among the grievances that led to revolution.

The Tang had tried several versions of the system after the rebellion. By the time Liu Yan took over, the state had too many offices, too many salt clerks, expensive salt for the buyer and little revenue for the treasury.

He reduced it to a simple structure. The people boil the salt. The state buys all of it. The state sells it to merchants at a markup, and the merchants carry it wherever they like and sell it at whatever the market bears.

This meant the government no longer needed an army of clerks to retail salt. A merchant with a profit to make will carry salt to the furthest valley on his own.

There were objections. Merchants are greedy, people said. The price will rise and the poor will suffer.

His answer was practical. If the state takes its cut at the salt field and the merchant can still make money on the road, salt reaches places no government warehouse ever reached. The verdict of the histories is eight characters: the state got its profit, and the people did not lack salt.

Salt revenue rose from four hundred thousand strings of cash a year to six million by the end of the Dali period. At that point more than half of all state income was salt money.

The system made a few cities rich. Yangzhou, at the junction of the Yangtze and the canal, became the salt capital of the empire, and the merchants who took his licences built gardens, theatres and libraries there for the next two hundred years. Poets went there to spend money and wrote about it afterward.

He also managed prices. The mechanism was the ever-normal granary: in a good year, when grain is cheap, the state buys at a premium; in a bad year it sells at a discount. The idea is easy. The difficulty is knowing what the price is, today, in a county eight hundred miles away.

He built a reporting network. Relay runners were posted from prefecture to prefecture, carrying nothing but news. Prices, rainfall, harvest prospects arrived on his desk within days.

The histories say that within the time it took to eat a meal he knew the price of everything in the empire. That is why he could move grain before a shortage became a famine.

His appointments were famous too. He took young officials with ability and no family behind them, sent them thousands of li away, and knew what they were doing as if he were standing beside them. Asked how, he said: use a man without doubting him.

The histories also record how he worked. He began at first light and stopped at midnight, holidays included. And they record one image: on the way to court, riding, he did his sums in the air with his horsewhip.

A man who carries the empire in his head and counts while riding is difficult to feel comfortable with.

His own household was spare. He lived in a modest lane, in a low house, ate plainly, and kept no concubines.

One Letter

In 777 the chief minister Yuan Zai was investigated. The man appointed to examine the case was Liu Yan.

Yuan Zai was corrupt and had made too many enemies. The case ended with an order to die. A crowd of his associates were demoted or exiled, and among them was a man named Yang Yan.

Yang Yan was talented, proud, and already hostile. When the two had served in the personnel ministry together, Liu Yan had been the minister and Yang Yan the vice minister, and they had clashed at every meeting.

After the Yuan Zai case, Yang Yan was sent to Daozhou. He remembered.

Three years later the emperor Daizong died and his son Dezong took the throne. Yang Yan became chief minister.

Among his first acts was a settling of accounts.

He told the new emperor that Liu Yan had once secretly worked to have the son of a favourite consort named heir, and to have the reigning crown prince set aside. The crown prince in question was the man now on the throne.

That sentence went into the most sensitive place in the emperor. As a crown prince, Dezong had spent years unsure of his position. It was the old wound.

There was a second layer. Liu Yan had held the finances of the empire for twenty years. The grain, the appointments, the news of every province passed through him. A new emperor looking at such a man thinks first about weight, not about service.

Liu Yan was stripped of his transport and salt commissions and sent to Zhongzhou as prefect.

Yang Yan was not satisfied. He joined with a regional commander to manufacture something heavier: that Liu Yan, in Zhongzhou, had corresponded with a rebellious general and written in a resentful tone.

In the seventh month of 780 the edict reached Zhongzhou. Death.

That same year the court promulgated the two-tax reform, which replaced the old head tax with a levy on land and property. It was drafted by Yang Yan, and it is the thing for which Yang Yan is remembered. The two men had argued about fiscal policy for twenty years, and the argument did not end with a policy debate.


Two Carts of Books

The inventory of the house came to two entries.

Two cartloads of miscellaneous books. A few bushels of rice and wheat.

The clerks thought they had made a mistake and counted again.

His family was exiled to the far south. Dozens of officials at court were implicated. Everyone said the case was unjust.

The warlord of the northeast, Li Zhengji, sent a memorial protesting. There was no reply.

Four years later, in 784, the emperor relented enough to allow the family to bring the body home for burial. Five years after that, in 789, Liu Yan was granted the posthumous title of prefect of Zhengzhou and the honorary office of minister of state.

Yang Yan did not last either. In 781 he made an enemy of another chief minister, Lu Qi, was exiled to the far south, and was ordered to die on the road. Also by strangling.

A Tang writer, telling the two deaths together, could not resist a line: Yang Yan killed Liu Yan, and Lu Qi killed Yang Yan. How alike they are.

The money that passed through Liu Yan in his life is counted in the hundreds of millions. What the ledger left him was two carts of books and a few bushels of grain.

Later writers did the arithmetic for him. Twenty years in office, in charge of the revenues of the empire, and he never added an acre of land or built a house.

It was meant as praise. It was also part of the reason he was killed. A man who does not take money from a heap of money makes everyone who does take it uncomfortable.

After his death his canal system kept running, his salt framework kept collecting, his granary rules kept prices steady. The Tang lived on that machinery for another century and more.

What did not survive was the man who could hold the price of everything in the empire inside his head for the length of a meal.

Like (0)
AdminAdmin
Pu Songling: The Storyteller Who Failed the Provincial Exam for Thirty Years
Previous 10/28/2026 06:23
Ban Jieyu: The Consort Who Refused to Ride With the Emperor
Next 10/28/2026 06:24

Related posts