In the fourth month of 1561, on the coast of Zhejiang, near the city of Taizhou.
Fifteen hundred soldiers came off the road in the rain. They had marched most of the night. Their cooking pots were still on the pack mules and not one of them had eaten.
Ahead of them, several thousand raiders were moving along the highway toward Taizhou.
Their commander was Qi Jiguang. He did not let them rest.
He drew the men up in lines, twelve to a group.
Before the sky was fully light, the two sides met.
A Soldier Born to Soldiers
Qi Jiguang was born in 1528, in Shandong, into a family that had produced officers for generations. His father, Qi Jingtong, rose to command the coastal defence of Dengzhou. The family were soldiers, but they were not rich. Qi Jingtong served honestly, left no land to his son, and left him instead a house full of military books.
In 1544 the father died, and at sixteen Qi Jiguang inherited his post as an officer of the Dengzhou guard.
As a boy he had loved reading, and he loved books on war most of all. While other children recited the classics, he drew battle formations on the courtyard wall.
Two years later he took charge of the military farms of Dengzhou.
In those years the Shandong coast grew worse every season. Boats came in from the sea, took what they wanted, and left. The government troops could not catch them or stop them.
He wrote a poem. Two lines of it survived: I do not wish to be made a marquis. I only wish the sea were calm.
That was not a flourish. For the next forty years it was the only thing he did.
From 1548 he spent five springs in a row leading troops to the northern frontier at Jimen and returning each autumn. Mongol cavalry pressed from the north, raiders came by sea in the east and south, and he stood between the two from the start.
In 1555 he was transferred to Zhejiang.
He was twenty seven years old.
The man in charge of the coast then was the governor Hu Zongxian. Under him served another officer with a real feeling for war, named Tan Lun. Both of them became supports to Qi Jiguang, and Tan Lun especially held him up more than once when the memorials against him were about to carry.
The next year, at a place called Longshan.
More than eight hundred raiders came ashore. The government troops went out to meet them. After a few exchanges, the government line broke, and the men ran backward faster than they had advanced.
Qi Jiguang stood behind the line and watched his own soldiers run.
Then he did one thing.
He climbed onto a high rock, drew his bow, and shot three arrows in quick succession. Three raider leaders went down.
The other side hesitated, then stopped. His own men stopped too, turned around, and went back into the fight.
He won that day, and he knew the truth of it. What won was not the army. It was three arrows.
The incident is in the official record. One man pulling a broken line back with a bow sounds like courage, and it was also helplessness. A real army should never leave its commander to do that.
He sent up several requests to be allowed to train a new force.
The court paid him little attention. Later, at a place called Cengang, he lost a battle, was stripped of his post, and told to redeem himself by fighting. Go and kill raiders, the order said, and earn your rank back.
Between Longshan and Cengang, over two or three years, one thing became plain to him. The raiders were not unbeatable. The problem was that this army could not beat them. A raider boat would put thirty or fifty men ashore, armed with long swords and paired blades, deadly at close quarters. But they were few and scattered, and they lived by looting and by running. The government had more men, and better armour. What it lacked was obedience, and a line that held. When a line breaks, numbers stop mattering.
To win, he had to change the men.
What finally set him moving was a street in Yiwu.
Recruiting in Yiwu
In 1559, in the county of Yiwu in Zhejiang.
The quarrel began over a silver mine. Villagers from Yiwu and from neighbouring Yongkang fell out over mining rights, gathered thousands on each side, and ended by fighting in the tens of thousands. They brought their own weapons from home. It took half a year to disperse, and the officials sent to suppress it could not.
When Qi Jiguang heard of it, he saw something different from everyone else.
Others saw a riot. He saw men who would stand and fight, fight well, and obey the men of their own village.
He asked the court for permission to recruit there.
He did not take idlers off the streets, and he did not take the old soldiers who had drawn pay for years without ever fighting. He took farmers and miners. He refused anyone from the towns, anyone who had served as a constable, and anyone with a criminal brand on his face. He also looked at each man himself, at the frame, at the colour of the face, at whether a man could meet his eyes.
What he wanted was men who could endure hardship, take orders, and not fear death.
The first draft came to three thousand.
Those men came to be known as the Qi family army.
The Squad of Twelve
Training began with the formation.
The government armies of the day fought by numbers and by weight of weapons. They charged in a crowd and broke in a crowd.
Qi Jiguang did the opposite. He cut his force down to the smallest unit: twelve men.
The weapons in those twelve were matched to each other.
In front stood two men with rattan shields, to stop arrows and hold off swords. Behind the shields came two men with langxian, a pole of bamboo several metres long with its side branches left on, like a thorny broom. It looked clumsy and it was made for one thing in particular. When a pirate long sword came at it, the branches caught the blade and held the man a full pace away.
Behind them, four spearmen drove in through the opening.
Behind the spears, two men with short weapons guarded the flanks and the rear.
And last of all came one man carrying a cooking pot.
He did not fight. He fed the other eleven. He walked at the back of the squad, and wherever the squad halted there was hot food and hot water. Qi Jiguang made it a rule that no man went out on an empty stomach. A hungry soldier is useless in any formation.
The formation was called the mandarin duck array, because the parts moved as one creature.
The twelve walked together, halted together, and turned together. The front men blocked. The men behind thrust. None could work without the others. The raiders were used to attacking in small bands of three or five, charging hard. Against this formation they could not break in and could not get back out.
He wrote two books about it, the New Treatise on Military Efficiency and later the Record of Military Training, setting down how to recruit, how to organize, how to drill, and how to reward and punish. They even explain how the food was costed and how the camp was laid out.
What made those books different was that they argued nothing.
Other manuals spoke of war as a craft of deception, of beating the enemy by surprise. He wrote about which species of bamboo to cut for a langxian, how thick it should be, how many tiers of branches to leave on. He wrote that soldiers must eat before they go out, and that no squad leaves camp hungry. He wrote that orders travel by flag, that the height of the flag sets the length of the step, and that a man who misreads the flag takes the stick.
People laughed at how small the details were. He knew that battles are lost in exactly such details.
Many Chinese military manuals written later copied from those two.

From Zhejiang to Fujian
In 1561 the raiders came at Taizhou in force.
Qi Jiguang had fewer than ten thousand men. The raiders numbered in the tens of thousands. He did not meet them head on. He spread his men out and fought them one column at a time.
From the fourth month to the fifth he fought nine battles and won all nine.
One of them nearly went wrong. A column of raiders broke away, swung behind him, and drove straight at the town of Xinhe. His own household was inside the walls, and there were almost no troops to hold it. By one account it was his wife, Madame Wang, who put the women of the town on the ramparts in uniforms taken from the stores, so that from a distance the wall looked black with men. The raiders hesitated, and by the time they moved the relief column had arrived and closed on them.
That account comes from later writers and the official history does not dwell on it. The fight at Xinhe is real, and the town held.
All told he killed more than fourteen hundred raiders outright, and more were burned or drowned. His own army lost a few dozen men in the whole campaign.
A ratio like that was not normal for the time.
After Taizhou, the trouble along the Zhejiang coast was largely over.
The next year he took his army into Fujian.
Off the coast of Ningde there was an island called Hengyu, ringed by shallows. At high tide it was water; at low tide it was mud. Boats could not reach it and men could not walk it. The raiders had made it their base, certain that no government force could come at them.
Qi Jiguang chose a day when the tide went out.
He had every soldier carry a bundle of rice straw. The men laid the straw under their feet as they advanced, stepping on it, laying more ahead. Halfway across, the tide began to turn and the water came back. The men at the rear were cut off and scattered. He stood at the front and did not give a step, and the rest pressed forward behind him, and they carried the straw all the way onto the island.
At dawn they fought, and killed more than twenty six hundred raiders.
After that he cleared several more strongholds at Niutian and Lindun. Along the Fujian coast they called him the tiger of Qi.
In 1563 he joined forces with Yu Dayou and Liu Xian and won the great victory at Pinghai garrison. The next year ten thousand raiders surrounded Xianyou. He marched six thousand men to relieve it, and won three engagements in a row.
By then the sea frontier, which had burned for more than a decade, was quietening.
One thing should be said plainly. The raiders the Chinese called wokou were not all Japanese. There were wandering warriors from Japan among them, and there were far more Chinese merchants, smugglers, and men with nothing left to lose. When the sea trade was closed, the sea stopped feeding people, and men turned to robbery. Qi Jiguang fought that mixture of men. He did not fight a people.
After the Patron Fell
With the southeast settled, the north was still open.
In 1568, on the recommendation of the chief minister Zhang Juzheng, he was sent north to take charge of the training of the garrisons of Jizhou, Changping, and Baoding.
He stayed in the north for sixteen years.
He brought his southern methods with him and formed infantry, cavalry, cart, and supply battalions that could fight as one force. He raised and thickened the old wall and built hollow watchtowers at the key points, towers large enough to hold troops, grain, and cannon. From Shanhaiguan to Juyongguan he put up more than twelve hundred of them, and turned the line into a wall that held.
In sixteen years the northern gate gave no serious trouble.
Through those same sixteen years his fortunes became bound to Zhang Juzheng. Zhang needed a man who could hold the northern frontier steady. Qi needed a chief minister ready to shield him. Each had what the other wanted. The trouble was that while Zhang Juzheng lived, the bond was protection; when he died, the bond became evidence.
In 1582 Zhang Juzheng died.
Zhang Juzheng had been his greatest support. With the patron gone, the memorials of accusation came at once. The next year he was transferred to Guangdong. Two years after that he was impeached, dismissed, and sent back to his home at Dengzhou.
When he reached Penglai, he was poor.
It was said that he had always been afraid of his wife and had endured her temper for years. It was also said that in old age she left him, and that he lived alone in an old house. The records are fragmentary and none of it is dignified, but this was what his last years looked like.
In 1588 Qi Jiguang died at Dengzhou, sixty years old.
He did not leave much. There was no money in the house. When the funeral was arranged, there was not even proper medicine in the room.
The two books he left are still read.
In the New Treatise on Military Efficiency there is a page of formation diagrams. Twelve small figures stand in a shape with a pointed head, two holding shields at the front, two carrying bamboo in the middle, several long spears slanting out behind. Against each figure is written what that man must do, and nothing is left vague.
That page was copied into other books, and copied again, for hundreds of years.
In Linhai, in Zhejiang, a shrine to Qi Jiguang still stands. There is nothing of his in it. There is only a stone with the two lines he wrote when he was young.
I do not wish to be made a marquis. I only wish the sea were calm.
He was never made a marquis. The sea, in the end, was calm.