Around the year 788, a boy of sixteen walked into the capital with a bundle of poems under his arm.
His name was Bai Juyi. His father held a minor post in the provinces and the family was not rich. He had come to the capital to see one man.
The man was Gu Kuang, a poet of some reputation and an official of the imperial library. In that period a young candidate for the examinations was expected to present his work to a senior figure before the test. This was called submitting the scroll. The servant carried the poems in. Gu Kuang looked at the name on the cover and smiled.
He said: rice is expensive in the capital. It is not easy to live here.
The line was quoted for centuries afterwards and turned into a proverb about the cost of making a name in the big city.
Then Gu Kuang opened the scroll and read the first poem.
Grass on the plain, thick and long, each year it withers and each year it grows. Wildfire cannot burn it away. The spring wind brings it back.
He stopped. He put the scroll down and changed his words. With lines like these, he said, it is not hard to live anywhere under heaven.
The story is recorded by Zhang Gu, a writer of the Tang, in a collection of anecdotes. It is a note rather than a history, and it may not be accurate in every detail. But it makes one thing clear. Bai Juyi got in on his sentences.
The Price of Rice in the Capital
The custom of submitting a scroll grew out of the way the Tang examinations worked.
The papers were not anonymous. The examiners could see the names. So before the test a candidate sent his verse and prose to men of influence and asked for a word in his favour. One well placed word could be worth ten years of study. Without it, the best essay in the empire might go nowhere.
Bai Juyi passed, but the phrase about the price of rice followed him all his life.
He served as a collator in the imperial library, ninth rank, correcting texts. He served as a county defender in a small county outside the capital, one of the lowest posts on the ladder, keeping order. Only when he reached the Hanlin Academy and the post of remonstrance officer did he get near the emperor. Salaries in the Tang were modest and the posts in the capital were the leanest. In his poems he complained about rent. He complained about having no charcoal in winter.
A man who had climbed up from the ninth rank understood money. It shaped the second half of his life. He stopped writing the poems that made enemies and began doing things with visible results: raising a dike, clearing wells, cutting a channel through rock.
Each of those things could be counted.
The Brush of a Censor
In 800 he passed the highest examination and placed fourth.
Seventeen men passed that year and he was the youngest. Years later he wrote a poem about the wall of the pagoda where the successful candidates carved their names, and said that among the seventeen he had been the youngest.
Then came the library, the county post, a place in the Hanlin Academy, and in 808 an appointment as a remonstrance officer.
It was a minor post of the eighth rank with one function: to find fault, close to the throne.
He took the job seriously.
In those years he wrote a large body of poems and sorted them himself into categories. The ones he valued most he called satirical verse. The best known are ten poems called Songs of the Capital and fifty called New Ballads. He wrote a preface to the New Ballads that stated his position plainly: letters should exist for the sake of the age, and songs should be made for the sake of the matter at hand.
Writing was not for ornament. Writing was for saying something.
He wrote about an old man who sold charcoal. Face grey with smoke and dust, hair at the temples white, ten fingers black. The old man pulled a cart through the snow hoping for a good price, and two men on horseback arrived, hung half a bolt of red gauze and a length of silk on the shaft of the cart, and led the charcoal away.
He wrote about a palace woman who entered at sixteen and left at sixty, and never learned what the world outside looked like.
He wrote about harvests taken by the tax office, about local officials inflating the household registers to improve their evaluations, about officials buying goods in the market at the point of a whip.
The poems travelled fast. He claimed that people wrote them on walls and tattooed them on their skin. That is an exaggeration, but the powerful were certainly offended.
There was one man writing alongside him.
Yuan Zhen was seven years younger. The two had sat the same special examination in the last years of the Zhenyuan period, had been appointed collators together, and remained friends for thirty years. Together they promoted the New Ballads. In the Yuanhe years one was in the south and one in the north, thousands of li apart, and they sent poems back and forth until they had hundreds. In the year Bai Juyi was banished, Yuan Zhen was ill in Tongzhou, and when the news reached him he wrote: half dead with sickness I sat up in alarm, and the dark wind blew rain against the cold window.
Friendships like that were rare in the bureaucracy.
Autumn at Jiangzhou
In the sixth month of 815 the chancellor Wu Yuanheng was murdered on his way to court.
Before dawn that morning Wu Yuanheng left his house and reached the east gate of Jingan ward. An arrow came out of the dark and struck him. His attendants scattered. The assassin cut off his head and walked away. In another street the chief censor Pei Du was also attacked and survived only because a felt hat turned the blade.
It was the most shocking thing that had happened since the founding of the dynasty: a chancellor killed in a street of the capital.
The court was in uproar. They hunted the killers for a long time and did not find them.
Bai Juyi was then an official of the eastern palace, an attendant to the heir. He sent up a memorial asking that the assassins be caught at once and the humiliation of the state be wiped out.
By the rules, an official of the eastern palace was not supposed to speak on state affairs before the censors did. Someone seized on that and accused him of overstepping.
Then came a second charge. His mother had died by falling into a well while looking at flowers, and he had written poems about flowers and poems about wells. This was said to be an offence against filial piety, and a man like that was unfit to govern a commandery.
The two charges together sent him to Jiangzhou as assistant prefect.
Jiangzhou is modern Jiujiang, on the Yangtze. The post of assistant prefect was a sinecure with no real authority and a small salary.
He stayed four years.
In the autumn of 816 he saw a guest off at the river bank. At night he heard a lute from a boat and asked who was playing. It was a singer from the capital, her looks gone, married to a merchant. He asked her to play, and when she had finished she told him her life.
He wrote a poem of six hundred and sixteen characters called The Song of the Pipa.
Both of us are people who have fallen to the edge of the world. Meeting like this, what need is there to have known each other before.
Those lines have been repeated for twelve hundred years. A banished official and a singer past her prime, on one boat, saying the same thing.
In those Jiangzhou years he built a thatched cottage below the Incense Burner Peak of Mount Lu.
It was small: three rooms, two posts, timber not painted red, walls not whitewashed. He wrote an account of it and described the surroundings in detail. In front there was level ground and a pool with white lotus. Beside it a waterfall, which at night sounded like rain. He said that everything he had ever loved was in that one building.
A banished man building a house on a mountain: it is hard to say whether that is genuine leisure or a quiet retreat.
The four years at Jiangzhou divided his life in two.
Before, he had been a remonstrance officer, and poems were petitions. After, he wrote more for himself. He later sorted his work into four kinds and said that the first two expressed the two roads open to a man: serving the world, and keeping himself whole.
Serving the world belongs to everyone. Keeping whole belongs to oneself. After forty he took the second road.
A Dike and Six Wells
In 822 he was appointed prefect of Hangzhou.
Hangzhou sits between a lake and a sea. There was plenty of water and not much of it usable. The lake, then called Qiantang, lay low, and whenever the level dropped the fields around the city had no irrigation. Prefect after prefect had left it alone.
He did not.
He organised the raising of the lake embankment, built sluices and gates, and held the water back. He laid down rules: the gates and channels were to be closed when the fields did not need water, and any leak was to be repaired at once. He had six wells cleaned out, dug decades earlier by an earlier prefect, Li Bi, and silted up until the city had trouble getting drinking water.
When the work was done he had the rules carved on stone and handed to his successors.
That stone is still there and the text can still be read.
About the dike, one thing needs saying.
The long causeway that crosses the lake today is called Bai Causeway, and visitors are told that Bai Juyi built it. The dike he actually built stood outside the Qiantang gate and is long gone. The causeway that exists today was called the White Sand Dike in the Tang, and it was already there when he wrote a poem about walking along the lake in spring, liking the east side best, where the willows stand green over the white sand.
He walked on the work of somebody else, and later generations assigned it to him.
A place remembers a man inaccurately and remembers him firmly.

Eight Years on the Fragrant Hill
In 825 he went to Suzhou as prefect.
He lasted a little over a year, but he left a name on the map. He cut a channel from the Chang gate to Tiger Hill, and the earth dug out of it became a road beside the water. Channel and road together came to seven li. People called it Shantang, the Seven Li Shantang. The canal that tourists boat along at night in Suzhou today is the one he dug.
In that year he fell ill and his eyesight worsened, and he resigned.
After that he held only honorary posts attached to the eastern capital, and lived in Luoyang.
He bought a house in the Ludaofang quarter of Luoyang, with bamboo and a pond, not large. From 829 he lived there for eighteen years.
The last part of his life is well documented.
In 832 he paid for the repair of the Xiangshan temple outside the city and added a hall for the Buddhist canon. He often stayed at the temple and associated with the monk Ruman, and called himself the Layman of Fragrant Hill.
In 844, at seventy three, he gave a sum of his own money to cut a channel through the Eight Section Rapids on the Yi River at the Longmen gorge. That stretch had nine jagged rocks in it. Boats struck them and sank, and in winter when the water was low the boatmen had to wade and push, and men froze to death doing it.
After the rock was cut away he wrote a poem about a man of seventy three, alive only from morning to evening, who had sworn to open a dangerous road and make a crossing.
In 845 he held a gathering of seven old men at his house, added two more to the number, and had a picture painted of the nine. Nine white haired men, the oldest more than ten years his senior.
In the eighth month of 846 he died in Luoyang, aged seventy five.
His family buried him, as he had asked, on the eastern hill at Longmen, beside the Xiangshan temple.
That hillside is now a garden. A stone stair goes up between steles put there by Japanese admirers; his name was larger in Japan than in China, and court nobles were reading him in the twelfth century. Higher up there is a corridor of poems by him and his friend Liu Yuxi, and a pavilion.
The grave is at the top: a round mound of earth with a stele in front, recording his final title, junior tutor to the heir apparent.
From the grave the Yi River is visible below. On the far bank are the Longmen caves. The rapids he cut through are on that river, and there is a reservoir there now, and the water is flat.
A boy who was told that living in the capital was not easy stayed on the edge of that city for the rest of his life, and was buried by the river.