In 728, at the palace in Changan, the court was listening to a debate between Confucians, Buddhists and Daoists.
The three sides had been arguing all morning when somebody mentioned that there was a boy of seven in the city who could hold his own with any of them, and who was sharper than his own cousin, a child already famous for it.
The emperor, Xuanzong, was interested. He had the boy brought in.
The boy arrived while the emperor was playing a board game with his chief minister, Zhang Yue. Zhang Yue pointed at the board and set the topic: four words, square, round, moving, still. Make a poem.
Zhang Yue went first, to show how it was done. Square as the board, round as the pieces, moving as the game lives, still as the game dies.
The boy thought for a moment and answered. Square as doing what is right, round as using judgement, moving as putting talent to work, still as being content.
Zhang Yue stood up and bowed to the emperor. Your majesty has found a prodigy.
The boy was Li Bi.
The Boy at the Board
Li Bi was born in Changan in 722. His family had once been enormous. A sixth-generation ancestor had been one of the eight pillar generals of the Western Wei, in the same rank as the grandfather of the founder of the Tang and the father-in-law of the founder of the Sui.
By the time Li Bi was born, all that was left was books. The family library was said to hold more than twenty thousand volumes, with a standing rule: nothing leaves the house, but any outsider may come and read in the side courtyard, and the family will feed him.
A household with that many books and no power tends to produce one of two kinds of boy. One who studies frantically to pass the examinations and get the power back. Or one who goes out to look at the world. Li Bi was the second kind.
He became famous at seven. The chief minister Zhang Jiuling liked him, kept him in the inner room to talk, and called him little friend.
Once Zhang Jiuling was discussing two subordinates. One, he said, was too stiff and severe. The other was softer, more agreeable, pleasant to have around. Li Bi, sitting nearby, asked him a question. You came up from nothing to be chief minister by holding to a straight road. Why would you now prefer a man who bends?
Zhang Jiuling was startled, and then he thanked the child.
That story is in the official history of the Tang. A boy of seven or eight made the most powerful official in the empire get up and thank him.
He never sat the examinations. He went to Mount Song, Mount Hua and the Zhongnan mountains, studied the Book of Changes, studied Daoist texts, learned fasting and breathing exercises, and wanted, quite seriously, to become an immortal.
In the 740s he sent the emperor a memorandum on the layout of the great ritual hall, and was called into the palace as an academic attendant to the crown prince. Then he wrote a poem that mocked the chief minister Yang Guozhong, was pushed out of the capital, and simply resigned. He went back to the hills at Yingyang.
He was in his thirties. He had already been in office once and out once.
A Robe Without Rank
In 755 the general An Lushan rebelled, and within a year the eastern capital had fallen and the imperial army had collapsed at Tong Pass.
The emperor fled west. At Mawei post station the guards mutinied, killed the chief minister, and demanded the death of the emperor favourite consort. She was strangled in a chapel by the road. The crown prince did not go on into Sichuan with his father. He turned north with a few hundred men and had himself declared emperor at Lingwu, in the barren country beyond the Yellow River loop.
This was Suzong. On the day he took the title he had almost nothing: no trained army, no money, and nobody to think with.
The first person he sent for was Li Bi.
The messenger did not have to go far. Li Bi had already left Yingyang and was on the road, several hundred li of hard travelling, and he arrived at Lingwu on his own.
Suzong wanted to give him an office. Li Bi refused. He said that he had no household and did not eat grain, and that rank and land were not what he wanted. He asked to follow the emperor as a guest: to come in and discuss the war, and to ride out beside him.
Suzong agreed.
What happened next had almost no precedent. In that makeshift court, a man with no office at all carried more weight than the chief minister. Dispatches from every front and appointments to every command passed through him first. The histories say his authority exceeded that of a chancellor. The emperor and he rode in the same carriage and slept in the same room.
The most important decision of that year was his.
An army had to be given a commander to retake the empire, and the natural choice was the third son, the prince Li Tan, who was able and popular and had already fought. The emperor wanted him.
Li Bi said no. He asked the emperor to consider what would happen if that son won the war. If a younger son restored the dynasty while the elder son stayed home, would the men who fought under him accept a future in which he was not the heir?
Then he mentioned the Xuanwu Gate. A little over a century earlier, a second son of the Tang had stood in exactly that position and had killed his elder brother and his younger brother on the same morning.
The emperor understood. The command went to the eldest son, Li Chu, who would later rule as Daizong.
Li Bi also laid out a strategy. Do not rush to retake the two capitals, he said. Keep the rebel army stretched between two fronts, wear it down, and then strike at its home base in the northeast. If you take the capitals first and let the rebels withdraw in good order, they will hold the north for generations.
The emperor did not take the advice. He wanted Changan back.
In 757 the capitals were recovered. The rebel remnants pulled back across the Yellow River, and the military governors of the north became, in effect, independent. That problem outlived everyone in this story and helped end the dynasty.

Five Reasons to Leave
After the capitals were retaken, the court changed.
Lingwu had been an emergency. In an emergency, a ruler with his back to a wall will listen to anyone who can think. Once the palaces were repaired and the officials were back in their ranks, the rules came back, and a man with no office who could say anything became a problem for everyone who had one.
The emperor had fallen under the influence of a eunuch, Li Fuguo, and a consort, Consort Zhang. Between them they controlled access to him.
Li Bi said he wanted to go.
Suzong would not release him, and asked why.
Li Bi gave five reasons. I met your majesty too early. Your majesty trusts me too much. Your majesty favours me too deeply. My service has been too great. And the whole shape of it is too strange.
Five sentences, each heavier than the one before. Then he left, and went to Mount Heng.
He stayed in the mountains for more than ten years.
Daizong, the son who had been made commander on Li Bi advice, called him back. He owed the man a great deal and tried to keep him by ordinary means: ordered him to eat meat, gave him a wife, tried to tie him to the world. It did not hold. The chief minister of the day, Yuan Zai, could not tolerate him and had him sent out of the capital. When Yuan Zai fell, Li Bi was recalled, and the next chief minister, Chang Gun, pushed him out again.
This time he went to Hangzhou, as prefect.
Six Wells in Hangzhou
In 781, at sixty, Li Bi arrived in Hangzhou.
Hangzhou then was not the city it later became. The ground water in the town was brackish. The lake was fresh, but a ridge of high ground lay between the lake and the streets, and the water could not be brought across it. People carried drinking water from a distance, and in a dry year the wells failed and the town grew dangerous.
What he did was engineering. He cut six outlets at the edge of the lake, ran bamboo and tile pipes across the ridge, and dug six large wells inside the city.
The names are still known in Hangzhou: the Chancellor Well, the West Well, the Square Well, the Golden Ox Well, the White Turtle Well, the Small Square Well.
The Chancellor Well is still there, on Jiefang Road near Jingsing Bridge.
Those wells lasted for centuries. When Bai Juyi built his causeway and Su Dongpo dredged the lake, they were continuing the same idea, which was to move lake water into the city so that people could drink.
Li Bi spent a little over two years in Hangzhou. The older official history sums up his administration in two words: governed well. The newer one says he left achievements everywhere. Neither gives details. Two hundred years later the city was still drinking from his wells.
One Man Into Shanzhou
In 785 the military commander of the Shanzhou region killed his own governor, took three walled towns, and asked the court to make him legitimate. At the same time he was in secret contact with a rebel general still in the field.
The court wanted to send an army. Li Bi said that Shanzhou was ringed by mountains on three sides and would take half a year to reduce, and that in the meantime the grain road between the eastern plains and the capital would be cut. Let me go, he said.
The emperor asked how many troops he wanted.
One man, he said.
He rode into Shanzhou alone.
The first thing he did inside the walls was not arrest anybody. He let it be known that the court had no wish to dig into the past, that apart from the ringleader everyone would keep his post and his pay. The garrison had been dragged into the affair rather than converted to it. Once that promise was in the air, the men lost interest in a fight. The commander found that he could not raise a single company.
Within days it was over. The man left the city eastward with his family.
A mutiny that could have cut the supply line to the capital was dissolved by one official and one proclamation.
In 787 Li Bi was made chief minister. He was sixty-six. Fifty-nine years had passed since he was carried into the palace as a boy of seven.
The first great work of his chancellorship was foreign policy. Tibet was the strongest power on the western frontier and raided every year. Li Bi argued that Tang should not meet Tibet head on. It should make peace with the Uyghurs to the north, conciliate the kingdom of Nanzhao to the south, and open channels to the Abbasid caliphate and to India in the west, so that Tibet faced enemies on three sides.
The difficulty was personal. The emperor, Dezong, hated the Uyghurs. As a young prince he had been sent to their camp and forced to perform a humiliating prostration, and the officer who protested had been beaten to death in front of him. He had not forgotten.
Li Bi raised the matter with him fifteen times. At the last meeting he laid out the arithmetic. With the Uyghurs, Tibet fights on two fronts. Without them, Tibet can concentrate everything on us.
The emperor gave way. The Uyghur khan accepted a marriage alliance and the northern border quietened for years.
He did two more things in those last years. He protected the two best generals of the age from an emperor who suspected them, arguing that killing victorious commanders was how a dynasty loses its armies. And he protected the crown prince, Li Song, when the emperor turned against him, memorial after memorial, until the emperor dropped the idea of replacing him.
Li Bi died in 789, at sixty-eight.
After his death a story went round. Somebody had seen him at a post station on the road south of the capital, in coarse hemp clothes, riding a donkey, heading south.
There is nothing behind the story. But it tells you how people thought of him. He did not seem like a chief minister. He seemed like a man passing through.
His choices were consistent to the point of strangeness. He would not take office, but whenever the state was in danger he came. When the danger passed, he left. Four times in, four times out. It was not that he did not want to work. He did not want to stay near the centre of power for long.
He had explained the method himself, at the age of seven. Square as doing what is right, round as using judgement. Direction should be square and method should be round. What is square cannot be given up. What is round can wait.
There is a line about him in the Three Character Classic, the primer that every Chinese child learned for a thousand years. It says: Bi, at seven, could write a poem on a board game. The boy was quick, and people called him remarkable.
Not the chief ministership. Not the mutiny he dissolved with an empty hand. A board game, four lines, and a child of seven.