In April 1561, on a stretch of salt flat on the coast of Zhejiang, a line of men came over the sea wall at a run.
They were bare to the waist and carried long blades, and they were fast. The government troops had seen that shape before, and the usual sequence followed: the front rank opened, the rear rank turned, and the whole thing ran.
This time it did not run.
Twelve men stood in a rank facing them. Two carried shields as high as the chest. Behind the shields two more held great lengths of green bamboo, the tips sharpened and the side branches left on. Behind those, four spears, two short swords, and one man with a carrying pole.
The attackers came in, and the blades hit bamboo and stuck in the branch stubs. While a man pulled his blade free, a spear came through the gap.
Once. Twice. Three times. Fewer men came each time.
Twelve Men to a Squad
They called it the mandarin duck formation, because the two halves of the array faced outward like a pair of wings.
Twelve men in a squad. One leader, two shields, two bamboo men, four spearmen, two swordsmen, one cook who carried the pots and did everything else.
The bamboo was the eye of the whole thing. A single stem, fifteen or sixteen feet long, branches left on the shaft, an iron point at the tip. It was not made to kill. It was made to stop: a blade coming down catches in the branches, a spear thrust gets pushed aside. One man holding it covers a wide front.
The spears went in and out through the gaps. The swordsmen came up close and finished the work.
The cleverness was not in the design. The cleverness was that it was dull. Twelve men, one job each. Three months of drill and they could do it. If the squad broke up, three or four men could still work together. On a field path, in a village lane, on a river bank, it opened out.
The array could also change shape. Twelve in two files was the two fold array. Split into three groups was the three powers array. One file for a narrow road, a wide front for open ground.
And one thing mattered more than the geometry. The men in a squad knew each other. Same village, same clan, same ancestral hall. If one man stepped back the squad was finished. If one man died there was somebody at home to ask why.
Qi Jiguang wrote all of it down afterwards in a manual called the New Treatise on Military Efficiency. The book covers how to stand, how to shout, how to eat. He did not believe that courage would arrive on the day. He believed in doing it correctly in advance.
What was there to practise? The heart, the nerve, the hand. The first two are vague things, so he made them concrete. Rewards and punishments paid the same day. One man retreats and the whole squad answers for it. One man dies and the whole squad is compensated.
Orders did not recognize personal ties.
The nearest thing in Europe was happening at almost the same moment. In the Dutch Republic, Maurice of Nassau was taking Roman drill manuals apart and turning them into a system of small units, fixed words of command and endless repetition, the same conviction that a soldier should move without thinking because he had done it four hundred times. Two men at opposite ends of Eurasia, working from different books and arriving at the same idea about fifteen years apart.
He also fixed the chain of command. Twelve men to a squad, four squads to a platoon, three platoons to a company, three companies to a battalion of about three thousand. A commander at every level, and at every level somebody responsible when something was lost.
The pay was better than elsewhere. Pay a soldier properly and then you can forbid him to loot.
The Men from Yiwu
Qi Jiguang did not start out knowing how to do any of this.
He was from Dengzhou in Shandong, his family registered there as military households, his ancestors from Dingyuan in Anhui. At seventeen his father died and he inherited the post of assistant commander of the Dengzhou guard, with responsibility for military farms. For several years after that he took his men to the northern frontier each spring and brought them home each autumn, and he saw what a real border garrison looked like.
The trouble with a border garrison was not that it could not fight. It was that it would not fight for somebody else.
In 1555 he was transferred to Zhejiang.
Those years were ugly for the government forces on that coast. Bands of a few dozen raiders would run several thousand men off the field, push inland, go around a walled town rather than through it, and appear in a different county a few days later.
The soldiers were there. They simply would not fight. The troops were from other provinces and went home when the season ended, and their pay was in arrears. The officers were appointed by civil officials, so a victory was credited upward and a defeat was paid for personally. The men did that arithmetic better than anyone.
In 1558 he failed at Cen Port, was removed from command, and allowed to keep working in the hope of redeeming himself.
The next year he went to Yiwu.
Yiwu sits in the hills, and that year two groups of villagers had fought a pitched battle over mining rights, with heavy casualties. Qi Jiguang went to look.
Then he wrote a sentence that says everything: these men can fight.
What he saw was not savagery. It was organization. A village feud needs units, signals, and men willing to stand in the front. These hill people already had all three.
He enlisted four thousand, some accounts say three thousand. Not vagrants, not town idlers, but farmers and miners from the mountains. The selection criteria were crude. Dark face, thick hands, honest, not afraid of officials.
Four thousand men drilled for three months. Not for techniques. For signals. Where the flag points, the squad goes. How the drum beats, the spear is passed. Drill until a man moves without deciding.

Nine Battles, Nine Wins
In the spring of 1561 the raiders came at the Zhejiang coast in force. Several hundred boats, more than ten thousand men, split into groups and thrown at Xiangshan, Ninghai and Taozhu.
Qi Jiguang made one decision. Do not chase the scattered bands. Concentrate and eat them one at a time. He took the fleet and the army to Ninghai first, held them frontally, then turned and cleared the rest.
In forty days, nine battles, nine victories.
The fighting was piecemeal. A group at Ninghai, a column at Xinhe, then Huajie, Baishuiyang, Changsha, one after another.
One story from those weeks is too good to leave out and too thin to trust. When a band reached the walls of Xinhe and the garrison was too small, Qi Jiguang’s wife is said to have had the armoury opened and the women of the town put on uniforms and stand on the wall, so that from a distance the place looked full of soldiers. It comes from later notebooks and cannot be checked. What it shows is what people at the time believed that household was like.
By the official count, fourteen hundred were killed or taken and four thousand more burned or drowned. The Zhejiang coast was, from that year, no longer an open door.
Discount the numbers. Ming field reports inflated them as a matter of course, heads could be bought, and men who burned or drowned were estimated rather than counted. The outcome is not in doubt. After 1561 the raiders stopped treating Zhejiang as a place to walk into.
The next year he took six thousand men into Fujian. At Ningde there was an island called Hengyu, joined to the shore by tidal flats, surrounded by water at high tide, and fortified by a raider camp that the government forces had failed to touch for years.
Qi waited for the ebb, had the men carry bundles of straw to lay over the mud, and walked them across. The camp was taken and twenty six hundred men killed.
Then Niutian in Fuqing, attacked at night. The local raiders gave him a name: the Qi Tiger.
In 1563 he joined Yu Dayou and Liu Xian at Pinghai, and Xinghua was recovered. That year he was made regional commander of Fujian.
From 1555 to 1565 is ten years. A raiding problem that had run for decades along the southeast coast ended inside that decade.
The Wall in the North
In 1567 the court sent him north.
The northern war was a different animal. In the south the enemy came in bands of a few hundred, hit fast and left fast. In the north he faced formed cavalry, arriving tens of thousands at a time, and once a gap opened they went through it and kept going.
Qi Jiguang went to look at the ground first. Then he sent up a memorial with one blunt sentence in it: the wall here is too low and too thin to hold.
He proposed a new kind of tower.
Not the solid beacon of the old pattern. Hollow. Three levels: stores and powder below, men in the middle, embrasures and guns on top. The spacing between towers was calculated so that each one lay inside the range of the next, in bowshot and in gunshot, so that two towers could cover the same ground.
Each held a few dozen men, with light guns, matchlocks, powder, and rolling timber. Beacons stood between them: smoke by day, fire by night, passing a signal down the line to the garrison town.
Within a few years there were more than twelve hundred of these towers between Shanhaiguan and Juyongguan.
He also built a wagon corps. A battalion of one hundred and twenty eight carts, guns mounted on the carts, the gaps between them closed with hinged side panels. Cavalry that came in took artillery first, then found the line blocked, and then had infantry and horsemen coming out of both flanks.
The proposal had backing. Tan Lun, governor of the frontier, had been his superior and his friend for decades, and a memorial from Qi Jiguang did not fall into a void.
And yet one thing never happened. He never fought a great battle.
Not that the north was quiet. In the early Wanli years a Mongol group came at Qingshankou and he beat them back. But an action of that size was, in his own estimation, the routine of frontier duty.
He had not fought.
A man who spent half a lifetime drilling troops ended up using his best soldiers to build a wall. That sounds cold. On a frontier garrison it is the normal condition.
When the Backing Fell
Qi Jiguang lasted fifteen years in the north because of a man who was not in the War Ministry.
Zhang Juzheng.
While Zhang ran the government, money came when it was asked for and men came when they were asked for, and memorials attacking Qi Jiguang were quietly filed. Qi understood the arrangement and did what was expected of him: gifts, visits, the usual courtesies. This was held against him later. Huang Renyu, in his study of 1587, notes that he cultivated the powerful.
In 1582 Zhang Juzheng died.
The backing was gone.
The next year Qi Jiguang was transferred to Guangdong. There was no war in Guangdong. A regional commander there was a man on a shelf.
In 1586 he was impeached and dismissed, and went home to Dengzhou.
The official history is thin on his last years. What later writers add is specific. Bare walls. No money for medicine. His first wife had left him long before. The sons by his concubines were still young. A man who had served forty years and risen to the rank of junior guardian of the heir apparent could not pay a physician.
The Ming history judges him alongside Yu Dayou: both were great commanders, it says, and neither matched his reputation in personal conduct, while both surpassed other men in resolution. Eight words, not kind, and not unfair.
He died at Dengzhou in January 1588.
Thirty one years later the war in Liaodong began, and in 1619 the Ming army was destroyed at Sarhu. By then the name that came up in the argument was not the man but the books.
The New Treatise on Military Efficiency and the Record of Military Training reached Korea and Japan and were read by later commanders. The Korean military manual of 1790 copies its diagrams at length. The Qing compilation of the imperial library put the New Treatise in the military section.
The books outlived the man.
He did not write much poetry. The line everyone quotes is from his twenties, when he was a junior officer on a coast that could not defend itself: I have no wish to be made a marquis, only that the sea be calm.
He got that. The sea was calm for thirty years. He did not live to see most of it.