On the eighth day of the first lunar month, in 1593, the ground west of Pyongyang was covered with cannon.
The biggest were called general guns. Bronze barrels more than three metres long, dragged by teams of mules, their muzzles laid on the western gate. The gunners crouched beside them holding slow matches.
On the wall, figures moved. Matchlock barrels came out between the battlements, row after row, like bamboo poles set upright.
At the hour of the dragon the drums started.
A hundred and twenty guns fired together.
Korean clerks who wrote down what they saw said the sound moved the sky. They said the flash lit half the horizon, and that the Ming guns came down like the sky breaking and the earth splitting, and nothing they struck stayed whole.
The iron-plated gate of the Seven Star Gate burst inward.
Then the men went in.
A Neighbour Across the River
The year before, in the fourth month of 1592, a Japanese army crossed the strait and landed at Busan.
Toyotomi Hideyoshi had finished uniting Japan the year before. He had sent the Korean court a letter asking for a road through the peninsula so that he could attack Ming China. The court declined. So he came to take the road.
Some hundred and fifty thousand men crossed in the first wave, in nine divisions. Busan fell on the thirteenth day of the fourth month. Seoul in the fifth. Pyongyang in the sixth. Of the eight provinces of Korea, seven were lost in a few months.
One thing held: the sea. The Korean admiral Yi Sun-sin fought a series of actions along the southern coast and broke up a Japanese convoy at Hansan Island. However fast the divisions moved on land, the supply ships could not follow, and the advance had to stay on the roads.
The Korean king, Sonjo, ran north. He went from Seoul to Pyongyang, then out of Pyongyang to Uiju, on the Yalu, where he could see Ming territory on the far bank.
He sent envoys across the river, again and again.
Korea had sent tribute missions to Beijing for two centuries. In that system, a request from a tributary was not a favour asked; it was an obligation owed. The Ming court still spent months arguing about it. Some officials suspected the whole thing was a Korean trick to draw Ming troops to the border and then hand the passes to Japan.
The order to march was given in the end.
It committed China to seven years.
The Rain at Pyongyang
The first man to arrive was Zu Chengxun.
He was a regional commander from Liaodong with three thousand cavalry. Liaodong troops had a reputation for speed.
He had been sent to rescue a king, not to storm a city. But when he reached the wall and saw how thin the defence looked, he thought it was worth a try.
It rained.
Ming troops depended on fire: rockets, hand cannon, small swivel guns. The rain soaked the powder and killed the matches, and the guns became iron weights. Japanese matchlocks had covered pans and their shooters worked from behind walls and houses, picking men off one at a time.
Cavalry went into the streets, horses slipping in the mud, riders swept off the saddle from above.
Zu came out with less than half his men. Several of his officers were dead. He was carried back.
The court in Beijing took the news badly. Some wanted to send a real army. Some wanted to abandon the whole business and let Korea hold the Yalu alone.
The man they sent was Li Rusong.
He was the eldest son of Li Chengliang, who had held Liaodong for decades with a household of hardened retainers. Li Rusong had already put down a mutiny in Ningxia. He was violent in temper and went forward rather than back.
He had some forty thousand men: Liaodong horse, Zhejiang infantry brought up from the south, and gunners from the capital arsenal.
The guns were the point of the army. A hundred and twenty general guns, plus Frankish breech loaders, tiger crouchers and lighter pieces, some light enough for two porters, the big ones taken apart for transport.
On the twenty-fifth day of the twelfth month, the army crossed the Yalu.
There was an interlude first. Shen Weijing, a talker with a merchant background, had ridden alone into Pyongyang the previous autumn and negotiated with Konishi Yukinaga: the Taedong River as the line, each side pulling back. When the Ming army arrived outside the city, word was sent ahead that the envoys had come to confer a title on Konishi.
Konishi half believed it. By the time he counted the gun emplacements, it was too late.
The Eighth of the First Month
Pyongyang was a hard city.
Old stone walls, an outer earth ramp, ice on the slope. The Taedong ran along the east side and was frozen in the first month, which meant men and horses could cross it. That made it both the garrison escape route and the gate the Ming army had to seal.
There were six gates: two east on the river, two south, two west, one north. North of the city rose a hill called Peony Peak, with two thousand Japanese on the top, looking straight down into the streets.
Konishi had between fifteen and eighteen thousand men behind those walls, most of them armed with matchlocks. Li Rusong had some forty thousand, and about twenty thousand Korean levies under the provincial commander Yi Il and the defence commander Kim Eung-seo were camped with him, useful for carrying, digging and holding ground already taken.
Li Rusong split his force four ways.
Wu Weizhong and Zha Dashou went at Peony Peak. Wu was close to sixty, an officer trained under Qi Jiguang, leading Zhejiang men.
Yang Yuan and Zhang Shijue took the Seven Star Gate on the west.
Li Rubai and Li Fangchun took the Ordinary Gate, also west.
Zu Chengxun, the man who had been beaten in the rain, dressed a column in Korean armour and went at the south gate.
That column was the trick. The Japanese held the south gate lightly because they thought Koreans were not worth much. The column walked up close, threw off the Korean coats, and opened with firearms at point blank range.
Luo Shangzhi led a dozen Zhejiang men up ladders at another south gate. A stone thrown from the wall caught him in the stomach. He lay on the ladder and did not fall, and the men behind him kept climbing.
At the foot of Peony Peak, Wu Weizhong took a ball in the chest, sat down, and went on shouting orders. His men did not pull back.
Li Rusong had one horse shot under him, mounted another, and went on. His brother took a hit on the helmet.
From the wall the garrison poured down boiling water and dropped stones, and tipped kerosene onto the ladders and burned them. The Ming answer was to shoot rockets in volleys until the wallhead was on fire and the smoke cut the field of view, and then drag the guns forward under the smoke.
A Japanese relief column under Otomo Yoshitada came up from outside the city, heard the guns, stopped, and turned around.
By noon Peony Peak was gone and four gates were open. The garrison pulled back into the earth forts in the north of the city and held them room by room. The Ming troops set the forts alight.

The Night at the Moon Pavilion
By dark, Konishi had a few thousand men left.
Li Rusong had not closed the east side. He had left a gap there, facing the frozen river.
This was an old rule of siege craft: leave one side open. A cornered enemy fights to the death. An enemy with a road out takes it.
That night the garrison broke out east and crossed the Taedong.
Men were waiting. Li Ning and Zha Dashou had put troops on both banks.
The dark was full of shouting.
By morning the Japanese First Division, which had landed at fifteen thousand and more, was down to about six thousand. Korean records put the heads taken at twelve hundred. The Ming memorial on the campaign reports seven hundred and ninety six of their own dead and fourteen hundred and ninety two wounded.
The numbers do not agree across the sources. What is not in dispute is what happened next: the Japanese advance in the north of Korea stopped. Pyongyang was given up, then Kaesong, and the divisions fell back on Seoul, abandoning the cities along the road.
Ming casualties were heavy too. The wounded were laid in the houses outside the wall that night, and Korean families brought quilts and rice water to them.
A century and a half earlier, Europe had watched a city come down to cannon when Mehmed II hauled his bombards up to the walls of Constantinople in 1453. What happened at Pyongyang belonged to the same long argument between masonry and gunpowder, fought out at the other end of Asia. The difference was in the aftermath. The Ottoman guns ended an empire. The Ming guns here only moved a front line south by two hundred kilometres.
The Altar in Seoul
With Pyongyang and Kaesong retaken, the Ming vanguard pushed on and ran into the Japanese main body at Byeokjegwan.
Three thousand cavalry under Zha Dashou met twenty or thirty thousand men. Li Rusong came up with a thousand more and was pinned in the mud, and only got out by blasting a hole with firearms.
That fight told Li Rusong what he needed to know: Japanese matchlocks were bad news in the open, and pushing on would cost him the army.
The Japanese pulled back to Seoul and did not come out. The Ming army sat at Kaesong. Neither side could afford another field battle, and the spring rains were coming.
So the war turned into talks.
The talks lasted four years. Shen Weijing travelled between the camps. Konishi wanted to keep his honour, Beijing wanted to keep its face, and the result was a set of documents that said different things in each capital. Ming understood it had granted the title King of Japan. Japan understood it had won a marriage alliance and a slice of territory.
In 1596 the Ming envoys reached Japan and read out the investiture. Hideyoshi threw the document on the floor.
The next year the fighting started again.
This time the Japanese came in again with fourteen hundred ships and a hundred and forty thousand men, and this time they took land and held it, building a chain of fortresses along the southern coast from Ulsan to Suncheon. The Ming sent Yang Hao with a fresh army and attacked Ulsan in the winter of 1597. The siege failed in the cold, with the attackers losing more men to frost than to the enemy.
At sea the Korean navy had been wrecked the same year: a court intrigue had stripped Yi Sun-sin of command, his replacement lost the fleet at Chilcheonryang, and the south coast lay open. Yi was reinstated with twelve ships left. He met a Japanese fleet of more than a hundred and thirty in the Myeongnyang strait and used the current and the narrows to beat it.
It ran another eighteen months. In the eighth month of 1598 Hideyoshi died, and the order came to withdraw.
In the eleventh month, at Noryang, the Ming and Korean fleets caught the transports leaving.
Deng Zilong, a Ming rear admiral, was seventy. He took three ships into the middle of the convoy and set it alight, and his own ship burned and he did not come out. Yi Sun-sin, on the Korean flagship, took a ball in the chest and told the men around him that the fight was at its height and they were not to say he had died.
The battle was won. Neither admiral came home.
Ming records put the cost of the seven years somewhere between seven and eight million taels of silver. Three great campaigns were fought under the Wanli emperor, and this was the most expensive of them. It drained the treasury and pulled the Liaodong garrison apart, and the bills came due a generation later, when the Jurchen rose in the north east.
Korea was worse off. Seven of eight provinces wrecked, households cut by more than half, the palace at Seoul burned to its platforms.
Afterwards the Korean court built an altar in Seoul and set on it the tablet of the Wanli Emperor, the Ming ruler who had sent the army. It was raised in 1704, sixty years after the Ming had ceased to exist. Korean official documents went on using Ming reign titles for another two centuries; the Chongzhen era name was still on government paper in 1897, when the kingdom finally declared itself an empire and changed the calendar.
An altar to a dynasty that had been gone for two hundred and fifty years.
The site is still there, in the back garden of Changdeokgung.
On the slope west of Pyongyang, where the guns were laid, there is a city street now.
When they cut the road they found cannonballs.
Iron, round, rusted into lumps, a little bigger than a fist.