On the fourteenth day of the second month of 1041, at first light, a thin mist lay in the valley below the Liupan Mountains.
The Song army was moving along the river.
The column was strung out. The men were hungry. The horses were hungry. They had marched all night and nobody had eaten.
Ahead, at the side of the road, stood several boxes.
They were silvered, sealed with clay, set in a row as if someone had put them down and forgotten them.
A soldier went over and opened one.
More than a hundred doves burst out.
The clatter of wings filled the valley. Each bird carried a small whistle on its leg. As they climbed, the whistles sounded, higher and higher, louder and louder.
The Song troops looked up.
And on the slopes on both sides of the valley, a line of men stood up.
Row after row after row.
The yellow earth had looked like dry grass and broken stone. Now it was men.
Someone in the column shouted that they had been tricked.
One Defeat After Another
To understand the doves, go back three years.
In 1038 Li Yuanhao declared himself emperor at Xingqing, and called his state Great Xia. The Song court called it the Western Xia.
The Song court did not recognise him.
The price of not recognising him was war.
In the first month of 1040 the Xia army came south, put Yanzhou under siege, and broke the Song relief force at Sanyuankou. The Song commanders Liu Ping and Shi Yuansun were taken. More than ten thousand men were gone.
Yanzhou held out for seven days.
The prefect, Fan Yong, had no field army. He shut the gates. One fort after another outside the wall was taken, the relief columns were intercepted on the road, and Liu Ping arrived at Sanyuankou too late.
When the report reached the eastern capital, the emperor Renzong rebuilt the whole north western command. Xia Song took charge of the region. Han Qi and Fan Zhongyan were made his deputies.
The two deputies were nothing alike.
Han Qi was in his early thirties, had served as a remonstrance official, said what he thought, and was impatient. His first act on arrival was to count the frontier troops, discharge the old and the weak, and form the rest into a few drilled divisions.
Fan Zhongyan was past fifty, sent from Yuezhou. His first act was to repair walls. His second was to open military farms. His third was to bring the Tibetan and Tangut border clans into the Song system with titles and grain.
One wanted to attack. One wanted to hold.
Both were right.
Neither could convince the other.
The court debated it several times and reached no decision.
In the end it compromised. Han Qi could move, but he was to be careful and was not to pursue far.
Han Qi did not say that once.
He was afraid the men at the front would chase a victory, so he sent a second order down the post road, harder in its wording than the first.
Orders travel by relay. Men travel by mountain track.
The order reached the column when it was already a long way out.
Li Yuanhao did not wait for the debate to finish.
In the second month of 1041 he came south with a hundred thousand men, attacked Huaiyuan first, and let it be known that he was going on to Weizhou.
Huaiyuan was a small town with a small garrison. It fell in a few days.
After that the Xia army did not continue toward Weizhou. It stopped around Haoshuichuan, put its main body on the slopes on both sides of the valley mouth, and sent only a detachment forward.
The detachment had a simple job. Be seen, and then run.
Han Qi heard the report and concluded that the enemy wanted a decisive battle. He sent Ren Fu, deputy commander of the Huanqing circuit, with eighteen thousand men from Zhenrongjun, to swing around behind them.
Ren Fu was an old soldier who had come up from the ranks and carried dozens of wounds. The troops he led were the best in the Jingyuan circuit.
The written order was clear. Fight if you can. If you cannot, take high ground, set an ambush, and cut them as they come back.
Do not pursue.
The Doves Go Up
Ren Fu marched on the thirteenth.
At Nalongchuan he heard that Xia troops were engaged with Song units near Zhangyi fort. He changed direction and went south.
He caught them and fought a sharp action, killing several thousand.
The Xia fell back.
Ren Fu followed.
That pursuit took him outside his orders.
The retreat was well staged. They left baggage, left animals, and ran north. The Song troops picked up supplies along the road and their spirits rose.
By nightfall they reached Haoshuichuan.
Men exhausted, horses exhausted, grain short.
Ren Fu and Sang Yi had the light cavalry. Zhu Guan and Wu Ying with part of the force were at Longluochuan. The two commands agreed to meet at the valley mouth the next morning.
That night the slopes were quiet.
Too quiet.
On the morning of the fourteenth the column went west along the valley and reached a point five li east of Yangmulong fort. That is where the silvered boxes were.
The Xia had put them there.
The doves were the signal.
The men who stood up on the slopes were Li Yuanhao and his ambush.
Before the Song line could form, the cavalry came down.
The Xia banner was two zhang tall. It dipped left, and the left slope rose. It dipped right, and the right slope rose. Both came down from the high ground at once.
The valley was narrow.
Men were packed together. They could not raise a spear or draw a bow.
They tried to climb the slopes. The slopes were men. They tried to fall back down the valley. The mouth was blocked.
They took the timber off the wagons for shields and stacked saddles against the arrows, and held for something over an hour.
It was not enough.
Ren Fu had several wounds. His officers told him to cut his way out.
He said: I am the commander. The army is beaten. I can only repay the state with death.
Then he took his own throat in his hand and died.
His son Ren Huailiang died in the same fight. Sang Yi, Liu Su, Wu Ying, Wang Gui, Zhao Jin and Geng Fu all died.
On the other side, Zhu Guan and Wu Ying were surrounded at Yaojiachuan and fought from mid morning to noon before the line broke.
The Song dead came to ten thousand three hundred and more.
Zhu Guan got out with about a thousand men.

Calling the Names
When the report reached the eastern capital, the emperor could not eat.
The whole region west of the pass shook. The chief minister Lu Yijian said the same thing several times over: one defeat worse than the last, and it is frightening.
For a while, fewer men spoke in the morning audience.
Everyone understood that the fault did not lie with one general.
Someone had to carry it.
Xia Song was demoted. Han Qi was demoted. Fan Zhongyan was demoted as well.
Han Qi sent up a memorial accusing himself and saying that the plan had been his and that it had killed those men. He was sent to Qinzhou.
Fan Zhongyan had argued against the offensive. He was the deputy, and he went down with the rest, to Yaozhou.
On the road back, several thousand fathers, brothers, wives and children of the dead stood at the roadside calling the names.
They held the clothes the dead had worn, and paper money to burn.
The accounts say the clothes were patched.
They called a name. They threw a handful of paper money into the wind.
The wind carried it into the valley and dropped it on the trodden earth.
On the Xia side, Li Yuanhao was pleased with himself. He said: I will ride to the Wei River and sit in Chang’an.
He never did.
Because he could not go on either.
He had won the battle and lost half his army. The Xia state was a war economy that could not carry a long war. The Song closed the border markets, stopped the annual payments, and the price of grain, cloth, tea and salt inside Xia climbed month by month. A rhyme went round the country listing ten ways in which things were worse than before.
Armies eat.
One other man became known around this time.
His name was Zhang Yuan, a failed examination candidate from Song who had gone over to Xia. After the battle he walked the field and wrote a poem on a cliff:
Xia Song never towered. Han Qi was nothing extraordinary. The whole valley of dragons and tigers, and they still talk about strategy.
The poem travelled back to Song and was cursed for a long time.
But it had one thing right. This was not a defeat of too few men. It was a defeat of too many separate plans.
The Song had several hundred thousand soldiers in the north west, split across four circuits. Each had its own commander, its own supply road, its own ledger.
Xia had one army and one order, and it moved when it was told.
Several hundred thousand men, four sets of books.
A hundred thousand men, one sentence.
After Haoshuichuan the Song changed method.
It stopped looking for a decisive battle.
It built walls, planted forts, opened military farms, and moved forward a step at a time.
That was the method Fan Zhongyan had argued for all along.
He did not get to fight his battle, and he was demoted for losing one he had opposed, and in the end his method was the one adopted.
Two Hundred and Fifty Five Thousand
In the tenth month of 1044 the two states made peace.
The terms were these. Li Yuanhao gave up the imperial title and acknowledged the Song emperor as overlord. The Song recognised him as ruler of Xia. Every year the Song would send fifty thousand taels of silver, a hundred and thirty thousand bolts of silk, and twenty thousand catties of tea, a total reckoned at two hundred and fifty five thousand. The border markets reopened and the trade resumed.
The Song called it the Peace of Qingli.
It was not a victory and it was not a surrender.
It was arithmetic. Fighting on, both sides lost. Stopping, both sides could live.
For English readers, the nearest thing to the peace of 1044 is the Danegeld, the silver English kings paid the Vikings to stay away. Some called it cowardice and some called it bookkeeping. It bought the same two things: time, and a border that stopped moving.
After the peace, Xia envoys came to the eastern capital every year. Song cloth, tea and porcelain went west. Xia horses, salt and camel wool came east.
The markets were set up near Baoanjun and Zhenrongjun, two at first and more later. On market days the traders arrived before light and the camels and horses were tied in rows.
The Song did the sums. Two hundred and fifty five thousand was cheaper than an army.
Xia did the sums. Being a subject ruler who could still rule was better than being an emperor who could not fight on.
The farmers along the border got a few quiet years.
Fan Zhongyan, while he was out there, wrote a lyric that begins with a cup of cloudy wine and a home ten thousand li away, and ends with no victory yet and no date for going home.
It is a famous poem now.
But the men on the border sang something else, a marching rhyme: in the army there is one Han, and the western bandits feel the cold in their bones; in the army there is one Fan, and the western bandits are frightened out of their wits.
Rhymes are sung. Battles are not.
The ten thousand men at Haoshuichuan never heard it.
In the spring of 1044, Teng Zijing was demoted to be governor of Baling.
That sentence has been read a great many times in the last thousand years. It is the first line of a short prose piece called Record of the Yueyang Tower. The essay goes on to say that the following year the government was harmonious and everything neglected was taken up again. Later it says that one should worry before the world worries, and be glad after the world is glad.
Few eyes stop on the first line.
Fewer still ask why Teng Zijing was demoted.
After Haoshuichuan he was serving at Jingzhou. When the broken troops came through, he took every ox and every jar of wine in the city and fed the survivors, held a Buddhist rite for the dead, and paid out relief to the families.
The place settled.
Later someone accused him of misusing public funds.
An audit found that he had indeed spent government money.
So he went to Baling.
Fan Zhongyan wrote the Record while he was at Dengzhou and Teng was at Yuezhou. Both men were out of the north west by then.
There is not one word about Haoshuichuan in that essay.
But its first line begins there.
Today, going west from Guyuan past Xiji toward Xinglong, farmers digging irrigation ditches and foundations still turn up bones.
In the 1984 survey, investigators picked bundles of iron arrowheads out of the bone heaps.
Some skulls still had six centimetre arrowheads in them.
In 1999, work on a granary wall at Xinglong uncovered a layer of bone more than a hundred metres long and a metre deep, human and horse mixed together.
In 2009, walking the cliff edge, surveyors saw the white showing through the soil in bands, with celadon cups, grey pottery jars and iron armour scales mixed in.
None of it has a name on it.
It only puts one sentence on the ground: ten thousand three hundred and more.