On the twenty-seventh day of the eighth month, in the year 663, a fleet lay at the mouth of a river on the west coast of Korea, where fresh water meets the sea and the whole surface turns the colour of clay.
There were one hundred and seventy ships, all facing outward.
The men aboard had been waiting ten days.
The Last Letter from Baekje
The story starts three years earlier, in 660, when a Tang army of a hundred and thirty thousand crossed the sea under the general Su Dingfang, joined with the soldiers of Silla, and took the Baekje capital in a matter of days. The king, his crown prince, and the court were shipped to Chang’an.
Baekje should not have fallen that fast. It had an ally across the water.
At that time the peninsula held three kingdoms. Goguryeo in the north, the largest and the hardest. Baekje in the southwest. Silla in the southeast. They had fought each other for centuries without finishing the argument.
The Tang court had a different arithmetic. Emperor Yang of the Sui had invaded Goguryeo three times and failed three times; on the second attempt, of the army said to number a million, fewer than three thousand came home. The men who ran the Tang remembered this. So they tried the other order: take the flanks first, then the middle.
Baekje, in 660, was one of the flanks.
Its surviving commanders refused to accept it. A general named Gwisin Boksin pulled the remnants back to a hill fortress called Juryu and sent a message across the sea. With the message he sent a person: a Baekje prince named Buyeo Pung, who had lived in Japan for decades as a hostage.
The meaning was plain. The kingdom still exists. The bloodline still exists. Send us the prince, and send us soldiers.
The Japanese court agreed, and agreed quickly.
Japan was in the middle of remaking itself. The Taika reforms, begun in 646, copied Tang law and Tang registers: land taken into state ownership, households written into rolls, the great clans folded into a bureaucracy. Reform takes time, and it helps to have a reason. A request for rescue from Baekje was a very good reason.
The army raised for it came from the clans of Kyushu and the Inland Sea. The ships were fishing boats and grain transports pressed into service, and the crews were fishermen. An army like that can win when the wind is behind it. Once it is checked, it cannot re-form.
In the first month of 661, Empress Saimei and her son, the prince Naka no Oe, travelled to Kyushu to lead the crossing in person.
In the seventh month the empress died, and the expedition stopped for most of a year.
In 662 Japan sent a hundred and seventy ships to take Buyeo Pung home and put him on a throne. In the third month of 663 it added twenty-seven thousand more men.
One Hundred Seventy Against a Thousand
On the Tang side, the fleet was commanded by Liu Rengui.
He was not a soldier. He had come up through the civil examinations, served as a county magistrate, and made his name by beating a cavalry officer to death for extorting the district. The case went to the emperor, who asked how a minor official dared to kill one of his officers. The answer was that the man had been robbing the people, and the law had been applied.
The emperor remembered him for it.
Later Liu Rengui was made an imperial secretary, then lost the post when a convoy of grain under his charge was wrecked, and went to the front with no rank at all. The histories use a phrase for it: he served as a plain man in white.
So the man commanding the Tang fleet in the Yellow Sea was a demoted civil official in undyed cloth.
The Tang did not consider this theatre important. The main army was in the west. The eastern expedition was a side operation, and the record of the battle in the Old Book of Tang runs to a few dozen characters, tucked inside Liu Rengui’s biography, without a chapter of its own.
It still changed the map.
After the fall of Baekje in 660 the main Tang force withdrew, leaving Liu Renyuan to hold the fortress at Ungjin. Baekje loyalists besieged it for more than a year. When Liu Rengui arrived he broke the siege first, and then turned it around and put Juryu under siege instead.
In the eighth month of 663 the allies moved on two axes.
By land, Liu Renyuan, Sun Renshi, and King Munmu of Silla closed on Juryu.
By water, Liu Rengui, Du Shuang, and the surrendered Baekje crown prince Buyeo Yung took a hundred and seventy ships to the river mouth.
There were not many Tang troops on the peninsula. Land and sea together, something over ten thousand men. The garrison at Ungjin had been besieged for a year and was short of everything.
The Japanese force is given as forty-two thousand men and a thousand ships. That figure comes from the Japanese record and probably counts labourers and boatmen. However it is counted, the side with more men and more hulls was Japan.
Ungjin had held out for more than a year on short rations. The garrison had eaten the horses and was reduced to scraping the stores; when the relief came, the men who had been shut inside could not at first believe that the ships at the mouth were theirs.
At the river mouth, the water was the problem. On the flood the sea pushes inland and the surface goes flat as a table. On the ebb the mud comes up and a deep-keeled ship can ground. Whoever chose the hour chose half the battle.
August is typhoon season. A south wind off the mouth breaks the surface into chop.
Liu Rengui waited.
The twenty-seventh passed without a fight. Tide governs everything on that coast: with the wrong water, the big ships cannot come out and the small ones cannot get back. Both fleets sat facing each other for a full day.
The next morning the Japanese commanders met with the Baekje king.
The Old Book of Tang puts an argument in Liu Rengui’s mouth, delivered before the battle: it is autumn, the grain is still in the fields, the enemy has not yet concentrated, and if we strike first we can break him. Historians like to hand a famous general one good line, and this one may be invented. What can be checked is the deployment. He had not planned to sit still.
Someone at the Japanese council said a sentence that the chronicle kept: we press forward first, and they will fall back on their own.
So they went forward, all of them, without order of battle and without waves.
Four Battles, Four Fires
The two fleets did not look like each other.
The Tang ships were tower ships and covered warships: high sides, thick decks, men shooting down from above. The planking was nailed and caulked with tung oil and lime, two layers where one would do.
The Japanese ships were mostly flat-bottomed boats, fast and light, crowded when they were full. They were not a standing navy. They were levies, one or two from each household of a clan, with the fishermen who owned them still at the oars.
A thousand boats means a great many boats. It also means a thousand separate decisions about what to do next.
At first the Tang line gave ground.
It gave ground in order, the way a door opens rather than the way a wall falls. The centre pulled back; the two wings did not. They spread outward along the banks and let the channel open up.
The Japanese came through the gap and their formation came apart in the narrow water, oars catching oars, bow against stern, no room to turn.
Then the wings closed.
The Japanese chronicle describes it in four characters that translate roughly as: the Tang ships came round from left and right and fought in a circle.
The fire went with the wind. From the high decks the archers shot down into sails and deck housing. In the mouth of a river in August, with the hulls touching, one fire becomes twenty.
Here the comparison to Europe is worth a paragraph, because the lesson is not about size. At Salamis in 480 BC the Greek triremes, smaller and lower, destroyed a Persian fleet several times their number by drawing it into a narrow strait where the big ships could not use their advantage. At the mouth of the Baekje river the same law ran the other way. The bigger, higher fleet won because it forced the smaller one into water too tight to manoeuvre, and then set it alight. What decided both battles was not tonnage. It was who chose the ground, and who kept order when the oars began to foul.
Some of the Japanese who reached the bank that evening had come from villages where the boats were the family livelihood. They had sailed to a war in their own fishing boats, and the boats were gone.
The Old Book of Tang gives the whole engagement in a line and a half: Liu Rengui met the Japanese at the mouth of the Bai River, won four times, burned four hundred of their ships, smoke and flame rose to the sky, and the sea turned red.
Four times. Four separate fights in one day.
Behind those words there were tens of thousands of men. The Japanese ships were packed into the channel with no way out, burning in front and still pushing forward behind. Those who could swim went into the water. Those who could not held on to the oars.
That night the water in the river mouth was warm.

The Sea Turned Red
Buyeo Pung watched from the bank. He had not gone aboard.
He ran north afterwards with a handful of attendants, all the way to Goguryeo, and died later in Liaodong. The royal house of Baekje became guests of the Tang.
Juryu surrendered when the news came up the river. It was the last fortress.
Baekje as a state ended that day. Gwisin Boksin, the general who had held it together for three years, had already been killed by his own colleagues in a quarrel over command. A good commander who did not die at Tang hands died at his own.
The Tang created a protectorate over the old Baekje lands and made the surrendered crown prince its governor. A king without a kingdom, administering his own former country for the people who had taken it.
In Japan, the crown prince who had gone to Kyushu to lead the invasion was now on the throne as Emperor Tenji, and he began to build defences.
In 664 he raised a rammed-earth wall at Dazaifu in Kyushu: twelve hundred metres long, eighty wide at the base, more than ten metres high, with a moat five metres deep outside it. It was not meant to stop an army. It was meant to slow one down after it landed.
In 667 he moved the capital from Asuka to Otsu, near Lake Biwa. The reason given in the record is direct: fear of a Tang invasion.
The Tang did not come. Japan posted conscripted guards, the sakimori, along the western coast, three years at a stretch, tax-free, carrying their own grain. Many of them left poems in the later anthologies, mostly about wind at night and the road home.
A defeat had been turned into a system of coastal defence.
A Wall, and Ships to China
What Japan did next looks like the opposite of what a defeated country usually does. It kept sending embassies to China.
In 669 the seventh embassy sailed, officially to congratulate the Tang on the destruction of Goguryeo. For the next thirty years there was no formal contact, and then the embassies resumed, larger each time, several hundred people and four ships, carrying home law codes, sutras, calendars, the plan of a capital, and the whole apparatus of how a bureaucracy keeps its books.
The Japanese record of the battle is detailed. It preserved even the sentence about pressing forward first, which is to say the men who wrote it understood where the defeat had come from.
The Tang record is short. What the Tang took from the day was simpler: after it, the eastern sea was quiet for centuries.
The settlement did not last either. Within a decade Tang and Silla fell out over the old Baekje and Goguryeo territory, fought a war of their own in 675, and the Tang pulled its armies back off the peninsula to deal with the Tibetans. Silla got most of the peninsula. The Tang kept a foothold at Ungjin and called the arrangement a commandery.
Nobody in Chang’an wrote a poem about the river mouth. On the peninsula Silla unified most of it. Japan withdrew behind its water and spent the next century on registers, statutes and institutions.
Liu Rengui came home.
He rose to be chancellor, tutored the heir, and lived to eighty-four. Under Empress Wu he was still sending up memorials on policy, and nobody treated him lightly. A man stripped of rank and sent to the front in undyed cloth ended up with a biography in the Old Book of Tang. The most famous day of that life lasted less than two.
One day of fighting at a river mouth redirected three countries.
That river mouth is now the estuary of the Geum in South Korea. The tide runs twice a day, and at low water a wide flat of mud appears.
There is nothing on the mud.