Where the Min River comes out of the mountains it is not wide. The water is grey-green and carries sand. Once it leaves the gorge it spreads out, the land flattens, and the current slows. When the current slows the sand drops. When the sand drops the riverbed rises. When the riverbed rises the water goes over the bank the following year.
In summer the flat land turns into a shallow lake. When the water goes down it leaves a field of stones with sand in the gaps.
People had farmed that ground for two hundred years. They knew when to move and when to wait. They also knew that there was something in the water with a bad temper.
The story is recorded in the Chronicles of Huayang and again in the Commentary on the Water Classic. It concerns Li Bing, governor of Shu under King Zhao of Qin.
He is not a figure out of myth. He is an official with a name in the histories, and what he is remembered for is a piece of engineering. At Dujiangyan the river is split at a fish-shaped levee, the silt is thrown off at a spillway, and a channel cut through a mountain carries water into the Chengdu plain. It has been running for two thousand three hundred years.
But that is not the part the local people kept. What they kept is this. He fought the god of the river.
The chronicle disposes of it in a few lines. The river god demanded a bride every year, and a girl had to be sent into the water. Li Bing sent his own daughter. Then he went down to the river himself, made a compact with the god, changed into a bull, and fought him in midstream.
That a river has a god was ordinary knowledge in the old books. That a man who managed water had dealings with that god was equally ordinary, and the usual dealings were sacrifice and petition. What is not ordinary is the method. He did not sacrifice. He did not petition. He went in.
The nearest thing in English is Saint George and the dragon, and the difference between the two stories is the whole point. George kills the monster, the city is saved, and the tale ends with a baptism and a heap of severed heads. Nothing is built. Nobody measures the water afterwards. Chinese supernatural tales of this kind end differently. The god is not killed, he is brought to terms, and the terms are technical: three stone figures standing in the river with instructions about how high the water may go, and a channel dredged every winter down to a buried stone horse. The fight is the memorable part. The contract is the part that lasted two thousand three hundred years.

In his first year Li Bing did something that nobody could make sense of.
He did not begin work. He walked the river for two months, from the mouth of the gorge down to the flat land, and then walked it again, three times in all. He took four clerks, two draughtsmen, and one old mason.
The mason was named Liu, past sixty, with a scar running from the base of his ear to his jaw. Li Bing asked him how high the water came in a flood year.
To that banyan tree, the mason said.
And last year, Li Bing asked.
Three feet above the tree, the mason said.
Li Bing did not ask anything else. He stood under the banyan for a while, and then had a mark cut into the trunk.
That summer the water came higher than the year before, and three feet higher than the mason had said. The mark went under.
The next spring he began.
They opened the mountain first. The rock was hard and blue, and a chisel made little progress in a day. Li Bing had firewood stacked against the face and set alight, and when the stone was red they threw water on it. The rock split itself.
The first attempt took seven days. The wood ran out and the stone had opened in a single hairline crack, and the inside of the crack was still blue. The old mason crouched by it and felt along the split with his fingers, and said that the fire had not gone deep enough. Heat only reaches the skin of a stone, he said. You must burn three nights together without stopping, and the water must go on fast, or the rock closes up again.
The second attempt they burned for five nights. The wood was carried up from below, and the labourers worked in shifts, one bundle after another into the fire. On the fifth night, when they threw the water on, the sound that came out of the rock was like a string of firecrackers going off inside it. In the morning there was a split wide enough to put two hands into.
The method was slow but it worked. It took eight years to cut a gap twenty zhang wide, which is the channel they still call the Precious Bottle Mouth. From there one share of the Min River runs down into the Chengdu plain.
In midstream he built the thing that divides the water. Long cages of split bamboo were filled with river cobbles and stacked one on another until they made a levee. Bamboo is flexible, so the current cannot pull it apart. Cobbles are heavy, so the current cannot push it away. The head of the levee was shaped like a fish, and it is still called the Fish Mouth.
The Fish Mouth divides the river in two: an outer channel for flood water and an inner channel for irrigation. When the river is high, the fish lets the surplus go out to the outer channel. When the river is low, the inner channel stays full.
Beside it there is a low spillway. When the water goes over the top of it, the silt is thrown clear instead of settling in the channel. They call it the Flying Sand Weir.
He got all of it built. And that summer the water came anyway.
That year the flood arrived strangely.
It did not rise slowly. It came up in a single night. There had been no heavy rain upstream and the sky was clear. The men on the levee heard that the sound of the river had changed and ran to look, and the flood front was more than a zhang high and coming straight at the Fish Mouth.
The Fish Mouth took a breach. The bamboo cages burst, and the cobbles went rolling.
In the morning Li Bing stood on the levee and looked at it. He crouched, pulled a broken length of bamboo out of the water, and turned it over in his hands for a long time.
This is the water demon, sir, one of the clerks said.
What water demon, Li Bing said.
The river god, the clerk said. Everyone here says the river god takes a wife every year. This year nobody sent one, so he has come to take her himself.
Li Bing stood up and threw the bamboo back into the water. Then I will go, he said.
The chronicle gives this part flatly. Li Bing had his two daughters dressed and seated on a platform by the river. Then he walked down to the water and said that he wished to make a compact with the god.
He spoke to the surface of the river. He said that he proposed a wager.
Nothing answered.
I will become a bull, he said, and you will become a bull, and we will fight in the river. If you win, this land is yours and I will go. If I win, you go back down, and from this day you do not raise the water without cause.
He untied the white silk sash at his waist and knotted it around himself.
Then he went in.
What the clerks saw from the bank was two patches of water moving. One came down from upstream, one went out from the bank, and they met. The river turned white. Stones came up off the bottom and struck the rocks along the shore.
It did not look like a fight. It looked like two currents fighting for one channel.
It went on for a long time. When the water dropped, the men on the bank saw two bulls standing in the middle of the river.
One faced south, one faced north, heads locked, horns tangled, tails flinging water.
The one facing south had a white band at the waist.
When Li Bing came out of the river he called his clerks together.
Next time, he said, you will help me.
How, they asked.
By the white sash, he said. The white sash is at my waist. The bull without it is him.
The next day the water rose again and there were two bulls in the river.
The clerks stood on the bank with a dozen men, knives and spears in their hands. They waited a long while, until the two bulls locked again and neither could move.
The old mason saw it first. He pointed at the northern bull and shouted that it had no sash.
A dozen men went into the water.
It came to the waist, then to the chest, and the waves hit them in the face. They waded in and put their blades into the ribs of that bull.
The bull made a sound. It did not sound like a bull.
Blood came up through the water, spread out, and was carried away, and then there was nothing.
The water went down.
What floated on the river afterwards was not fish and it was not wood. It was sand.
That autumn the river did not rise again. The next summer it rose once, and stopped at the mark cut into the banyan.
Li Bing did not stop there. He did three things.
First, he set three stone figures in the river, one near the Fish Mouth and two elsewhere, to measure the water. He left one sentence about them. When the river is low, the feet are exposed. When it is high, the water must not cover the shoulders.
Second, he fixed an annual dredging. In winter, when the river is low, men go down to the bed and dig out the sand until they strike the stone horse buried underneath. That is where the six words come from that every engineer on the site still knows: dig the channel deep, keep the weir low.
Third, he had the rules cut into stone, so that whoever held the office after him would follow them.
He served in Shu for more than ten years. Where he died is not agreed. One account has him dying in office. Another has him sent to manage water somewhere else.
A temple went up beside the works later, dedicated to him and to his son. There are two images inside. One holds a plan. The other holds a spade.
The local telling is livelier than the book.
Some say the two bulls fought for three days and three nights and left holes in the rock where they stood. Some say the river god was not a bull but a hornless dragon. Some say that before Li Bing went into the water he handed the official seal to his clerk and told him that if he did not come out in three days, the seal should go back to the capital and a new man should be sent.
None of that can be checked.
One thing can be measured. The Fish Mouth, the Flying Sand Weir, the Precious Bottle Mouth, are still dividing the water after two thousand three hundred years.
Every spring, at the Qingming festival, the works are opened. Water comes out through the Bottle Mouth into the Chengdu plain and waters several million mu of fields. People stand on the bank and watch the flood front go past, and watch the water go over the spillway and throw the sand out into the outer channel.
Nobody mentions the river god that day. He is quiet on that day, like a bull that has been broken to work, standing in the water with his head down.
The water goes past him, and the year begins from there.