In the twenty-ninth year of Jiajing (1550, the gengxu year), Altan Khan, on the plea that the Ming refused trade and tribute and had killed his envoys, led his army east from Datong, broke the Great Wall at Gubeikou in the eighth month (late September by the western calendar), and came by Miyun and Shunyi to Tongzhou — the capital seized with terror. Yan Song, then chief of the council, ordered the armies to 'hold the walls and not lightly give battle', and the Mongols burned and plundered the capital's outskirts for eight days; Altan returned north at leisure by the Baiyang pass (Gubeikou by other accounts), in and out as through an empty land. The Gengxu Incident, as it is called, laid the mid-Ming frontier bare: garrison rolls unfilled, pay skimmed, commanders timid, and the capital's own armies of more than 100,000 not daring to fight. After it the court was forced to open the horse markets of Datong and Xuanfu in 1551 to ease the frontier, and closed them again amid the wrangle of the councilors, Altan raiding on; only with the Longqing accord of 1571 — the investiture of Altan as Prince Shunyi — did the north have decades of quiet. The Gengxu Incident and the wokou ravages of the same years in the southeast are paired in history as 'the wokou south, the cavalry north', and they forced the debate on frontier government and military reform from late Jiajing through the Longqing and Wanli reigns.