The Jiajing wokou raids were the great pirate scourge of the southeast coast from 1552 to 1565 (the thirty-first to forty-fourth years of Jiajing). With the Ming sea ban in force, Japan's masterless samurai joined Chinese smuggler-chiefs like Wang Zhi and Xu Hai, nesting at Shuangyu and Henggang, and the coasts of Jiangsu-Zhejiang and Fujian-Guangdong burned — slaughter without measure, Jiangnan shaken. The guard regiments had rotted and the early campaigns lost; the court sent armies and administrators: Hu Zongxian as governor-general of the southeast lured Wang Zhi to his death by design; Qi Jiguang recruited miners and farmers at Yiwu into the 'Qi family army' and invented the mandarin-duck formation — nine victories in nine battles at Taizhou (1561) — and with Yu Dayou fought through Fujian and Guangdong, with the wins at Pinghaiwei, Hengyu and Xianyou, until by the end of Jiajing the raids were essentially broken. After the pacification, in the first year of Longqing (1567) the court opened the sea ban: Yuegang in Zhangzhou, Fujian, became the legal port, the overseas trade revived — and the source of the wokou dried with it. The raids exposed the sickness of the sea ban and the sea defense; when Japan invaded Korea in the Wanli years the Imjin War followed, Ming armies crossing to fight — a great turn in late-Ming East Asia.