In the tenth month of 1131, on a plateau called Heshangyuan, it rained for days.
The plateau sits southwest of Baoji, ringed by ravines. To the north the ground falls away to the Wei River. To the south the road goes over the mountains to Hanzhong, and beyond Hanzhong lies Sichuan.
The mountain track was narrow and full of loose stone. Horses could not use it. The cavalry of the Jin dismounted and led their animals up the slope on foot.
Nobody on the ridge above made a sound until they were within thirty paces.
Then the arrows came.
Not one volley. The crossbowmen were split into squads. One squad shot and stepped back to span their bows, and the next squad stepped forward. The histories give the method a name that means arrows of the standing squads. The shafts went out in an unbroken line and came down on the slope thick as rain.
From morning to evening the Jin infantry attacked more than thirty times. They never reached the top.
At night they pulled back. At a place called Shenben the hills on both sides lit up with torches.
After that night the army was no longer an army.
The commander, Wanyan Zongbi, was hit by two arrows. He did not go back to camp. He found a stream, shaved off his beard, changed his clothes, and got away by himself.
The man who led a hundred thousand men escaped by making himself unrecognisable.
After Fuping
Wu Jie came from Longgan in the Deshun military district, in what is now Gansu. His family had served in the army for generations. He learned to shoot from horseback as a boy, joined up before he was twenty, and spent years fighting the Tangut state of Western Xia along the frontier.
The troops he trained were known afterwards as the Wu family army.
In 1130 the Song and the Jin fought a battle at Fuping in Shaanxi. The Song put five columns in the field and claimed four hundred thousand men. Far fewer of them could actually fight. The operation was pushed by the chancellor Zhang Jun, who wanted a decisive battle that would save the northwest. Five columns were crowded onto one stretch of flat ground, the grain could not keep up, and the camps were moved several times. The Jin held their ground, waited for the Song line to disorder itself, and then broke it in one push.
After Fuping, Shaanxi was mostly lost. The Song pulled back to the Qinling mountains.
Wu Jie did not go with them. He gathered a few thousand stragglers and climbed to Heshangyuan.
Some of his officers told him to fall back further, to Hanzhong, and hold the mouth of the road into Sichuan where it was safer. He answered with one sentence. If I hold here, the enemy will not dare to pass me and go in. That is how Shu is defended.
It sounds like stubbornness. It was arithmetic about ground. Heshangyuan is the first step on the stair into Sichuan. Everything south of it runs downhill. Whoever holds the height holds the road.
The problem was food.
There was no food on the plateau. The surrounding country was a war zone and the government could not move grain.
The people of Fengxiang remembered him. He had governed there and had not robbed them. So at night they carried grain up the back paths, family by family. Wu Jie paid them in silver and silk at a fair price. Because the price was fair, more came.
The Jin found out. They set ambushes along the Wei and killed the carriers, then imposed collective punishment on the villages, five households bound to answer for one.
The grain kept coming.
This is written down in a few lines of the Song chronicles. It is also the reason the battle could be fought at all.
There was a second problem. The men on the plateau were stragglers from a defeated army, and no word had come from the court in months. Some of them began to talk about seizing the two Wu brothers and handing them to the Jin in exchange for ranks.
Wu Jie heard about it.
He did not investigate. He did not execute anyone. He called the officers together, killed an animal, and shared out the blood, and then he spoke to them about loyalty. According to the record, the men wept.
The next morning the army was still there.
Arrows Like Rain
The first Jin attempt came in the fifth month of 1131, in two columns. One came from Fengxiang, one from the south through Jiezhou and Chengzhou. They agreed on a day to meet at the plateau.
Wu Jie made sure they never met. He held the first column in place, fought it for several days, and turned it back. The second column attacked the pass at Jiankuo and was also thrown back.
In the tenth month Wuzhu came himself.
He brought more than a hundred thousand men. He built a pontoon bridge over the Wei, marched out of Baoji in a chain of camps, piled stone into walls, and pushed forward along the ravine.
Wu Jie and his younger brother Wu Lin put their best crossbowmen in the centre.
The Song weapon was the shenbeigong, a bow with a range of about three hundred paces that could punch through armour. Most men could not draw it. The men who could were selected carefully and kept at it. The rotating volley existed to keep those few shooting without pause.
Under that rain of bolts, every Jin assault was pressed down.
Once the front was pinned, Wu Jie sent troops down the flank to cut the supply road.
An army of a hundred thousand with no road is a hundred thousand mouths. Wuzhu had to withdraw.
Wu Jie had already looked at the way back. He expected the retreat to pass through Shenben, and he put men there in advance.
The ambush went off at night. The Jin column came apart, men trampling each other, numbers of them going over the edge into the gullies. The Song pursued and took prisoners by the thousand.
Wuzhu took two arrows, shaved his beard, changed his clothes, and rode away.
For this Wu Jie was made military governor of the Zhenxi army. The more useful result was that Jin commanders now knew the road south out of Shaanxi was expensive.
The Second Line
In 1133 the Jin changed their method.
Instead of hammering at Heshangyuan they went around it, through Shangzhou and Shangjin, and struck Jinshou, tearing the Song line open at the side.
The Song commander at Jinshou had three thousand men. He could not hold, burned his stores, and fell back. When the news reached Hechi, Wu Jie marched to relieve the pass at Raofeng. He covered three hundred li in a day and a night.
He arrived at about the same time as the enemy.
First he sent a basket of yellow citrus fruit down to the Jin camp with a message. The great army has come a long way. This is to help with the thirst.
The Jin commander, Wanyan Salihai, looked at the fruit, struck the ground with his staff, and said: how did he get here so fast.
Then came six days and six nights. The Jin attacked in waves. The men in front died and the men behind stepped over them. Bows, crossbows and boulders came down from the wall. The bodies piled on the road.

On the seventh day the Jin paid for five thousand volunteers, sent them by a side path through Zuxi, and came down on the pass from above.
Raofeng fell.
Wu Jie pulled back to West County, then to Sanquan. It was an ugly retreat. Sichuan panicked and people at court began to talk about him.
He stopped at Xianren Pass.
The pass sits between mountains in what is now southern Gansu, close to the Shaanxi line: cliffs on both sides, one road in the middle, the Jialing River below. Hold it and Sichuan still has a door.
He gave up Heshangyuan. He was criticised for it. His reasoning was that the plateau was too far forward and its supply line too long, and that the men were better used at a narrower gate.
To the right of the pass he built a second fortified line and gave it a name that means the level ground where gold is killed.
In the second month of 1134, Wuzhu and Salihai came with a hundred thousand men. This time the Jin brought their families. They expected to go into Sichuan and stay.
On the first day they attacked the main camp and were driven back by crossbows and stone-throwing engines. They turned to the new fort and put up scaling ladders.
The Song officer Yang Zheng used pushing poles to tip the ladders over one after another, and spears came out of the wall. The Jin did not fall back. They wore heavy armour, hooked themselves together, and came up in single file. The men in front died and the men behind walked on the bodies.
Wu Lin drew a line on the ground with his sword and told his officers: if we die, we die here. Anyone who crosses this line is executed.
That night the Jin attacked the northwest tower. The tower was struck and leaned over. Yao Zhong went up with ropes of silk and hauled it upright. The Jin set fire to it and the Song put the fire out with jars of wine.
On the third day Wu Jie released Tian Sheng with long sabres and heavy axes into the flank.
At dusk the Song lit torches on all four hills and beat drums that shook the ground.
On the fourth day Wang Xi and Wang Wu took picked men, one unit under a purple flag and one under a white, straight into the Jin camp. The Jin formation broke. In the fighting a Song arrow took the left eye of the Jin general Han Chang.
The Jin left that night. Wu Jie had already sent Zhang Yan to storm the fort at Hengshan and Wang Jun to wait in ambush at Hechi to close the road home.
The retreat became a rout.
After this the Jin stopped talking about entering Sichuan. They went back to Fengxiang, handed out farmland to their soldiers, and settled in for the long term.
Wu Jie retook the three prefectures of Feng, Qin and Long. The western front settled on the Qinling line and did not move much for a century.
The Song history has one line about Wu Jie. Without him standing in the way, Shu would have been lost long ago.
Ten Years at the Gate of Shu
Wu Jie spent ten years in Sichuan, and fighting was only part of it.
He cut surplus staff and wasteful spending, put tens of thousands of soldiers on military farms, and brought in more than a hundred thousand bushels of grain a year. He set garrison troops to repair abandoned irrigation weirs, and several tens of thousands of displaced families came back to their land.
He read history. When he found a sentence worth keeping he wrote it on a wall or a window frame, until his rooms were covered in maxims.
He chose officers by record and ability, not by relationship, which was not common in the armies of that era.
He was strict with his men and paid them properly. A private soldier could get a hearing. That is why they died for him.
In 1135 the court reorganised the whole army into six standing commands under three regional fronts. The Wu command held the northwest, Yue Fei held the central plains, and Han Shizhong held the Huai and the Yangtze. Each answered for one face of the war and none could move the troops of another.
It was a change in how the Song army worked. Regiments that had belonged to a general became numbered commands of the state, even if the same men followed the same officers.
The northwest was the poorest of the three fronts. Sichuan had to feed tens of thousands of soldiers and pay for transport over the mountains to Hanzhong and beyond.
In 1139 the Song and the Jin made peace. He was appointed military commissioner of Sichuan and given the highest honorary rank, on the same day as Yue Fei.
By then he was very ill. The emperor sent an imperial physician west from the capital. The distance was too great. The physician was still on the road when Wu Jie died at Xianren Pass.
He was forty seven.
His posthumous title was Wu An, martial and peaceful. Under a later emperor he was ennobled as Prince of Fu. A shrine was built for him at the pass.
His younger brother Wu Lin took over the army and held Sichuan for another twenty years, and was also ennobled. Then came the son of Wu Lin, and then his son, Wu Xi.
Three generations of the Wu family held the gate of Shu for more than eighty years.
Then came 1206.
Wu Xi surrendered Sichuan to the Jin and had himself made prince of Shu. In a little over forty days his own officers killed him.
After that the shrines, the stone inscriptions and the family papers were smashed and burned. It is why so little of Wu Jie survives in objects.
The Letters on the Cliff
Xianren Pass today is a village in the mountains of southern Gansu.
Above it there is a cliff face with an inscription cut into the rock. It was carved in 1141 by Hu Shijiang, then the Song commissioner for the region.
The text says that the people of the west no longer have to wear foreign clothes or live under foreign rule, and that they owe their quiet lives to this one man.
After eight hundred and eighty years, the characters can no longer be read.
From the pass you can still see the Jialing River below and the road that is only wide enough for one cart. The stones along it have been washed pale by rain, the way they were then.
Of the arrows, not one is left.