The early walls In 1368, the
Hongwu Emperor (r.136898) ousted the Mongol-led Yuan dynasty from China to inaugurate the
Ming dynasty. The Mongols fled back to Mongolia, but even after numerous campaigns, the Mongol problem remained. During his early reign, Hongwu set up the "eight outer garrisons" close to the steppe and an inner line of forts more suitable for defence. The inner line was the forerunner to the Ming Great Wall. In 1373, as Ming forces encountered setbacks, Hongwu put more emphasis on defence and adopted
Hua Yunlong's (華雲龍) suggestion to establish garrisons at 130 passes and other strategic points in the Beijing area. More positions were set up in the years up to Hongwu's death in 1398, and watchtowers were manned from the
Bohai Sea to Beijing and further onto the Mongolian steppes. These positions, however, were not for a linear defence but rather a regional one in which walls did not feature heavily, and offensive tactics remained the overarching policy at the time. In 1421, the Ming capital was relocated from
Nanjing in the south to Beijing in the north, partly to better manage the Mongol situation. Thus defenses were concentrated around Beijing, where stone and earth began to replace rammed earth in strategic passes. A wall was erected by the Ming in Liaodong to protect Han settlers from a possible threat from the Jurched-Mongol Oriyanghan around 1442. In 146768, expansion of the wall provided further protection for the region from against attacks by the
Jianzhou Jurchens in the northeast. Meanwhile, the outer defenses were gradually moved inward, thereby sacrificing a vital foothold in the steppe transitional zone. Despite the withdrawal from the steppe, the Ming military remained in a strong position against the nomads until the
Tumu Crisis in 1449, which caused the collapse of the early Ming security system. Over half of the campaigning Chinese army perished in the conflict, while the Mongols captured the
Zhengtong Emperor. This military debacle shattered the Chinese military might that had so impressed and given pause to the Mongols since the beginning of the dynasty, and caused the Ming to be on the defensive ever after. The deterioration of the Ming military position in the steppe transitional zone gave rise to nomadic raids into Ming territory, including the crucial Ordos region, on a level unprecedented since the dynasty's founding. After decades of deliberation between an offensive strategy and an accommodative policy, the decision to build the first major Ming walls in the Ordos was agreed upon as an acceptable compromise the 1470s. in
Luanping County,
Hebei province, China
Yu Zijun (余子俊; 14291489) first proposed constructing a wall in the Ordos region in August 1471, but not until 20December 1472 did the court and emperor approve the plan. The 1473 victory in the
Battle of Red Salt Lake (紅鹽池) by
Wang Yue (王越) deterred Mongol invasions long enough for Yu Zijun to complete his wall project in 1474. This wall, a combined effort between Yu Zijun and Wang Yue, stretched from present day Hengcheng (橫城) in
Lingwu (northwestern
Ningxia province) to Huamachi town (花馬池鎮) in
Yanchi County, and from there to Qingshuiying (清水營) in northeastern Shaanxi, a total of more than 2000
li (about ) long. Along its length were 800 strong points, sentry posts, beacon-fire towers, and assorted defences. 40,000 men were enlisted for this effort, which was completed in several months at a cost of over one million silver
taels. This defence system proved its initial worth in 1482, when a large group of Mongol raiders were trapped within the double lines of fortifications and suffered a defeat by the Ming generals. This was seen as a vindication of Yu Zijun's strategy of wall-building by the people of the border areas. By the mid-16th century, Yu's wall in the Ordos had seen expansion into an extensive defence system. It contained two defence lines: Yu's wall, called the "great border" (大邊,
dàbiān), and a "secondary border" (二邊,
èrbiān) built by
Yang Yiqing (14541530) behind it. Following the success of the Ordos walls, Yu Zijun proposed construction of a further wall that would extend from the Yellow River bend in the Ordos to the Sihaiye Pass (四海冶口; in present-day
Yanqing County) near the capital Beijing, running a distance of more than 1300
li (about ). The project received approval in 1485, but Yu's political enemies harped on the cost overruns and forced Yu to scrap the project and retire the same year. For more than 50 years after Yu's resignation, political struggle prevented major wall constructions on a scale comparable to Yu's Ordos project. However, wall construction continued regardless of court politics during this time. The Ordos walls underwent extension, elaboration, and repair well into the 16th century. Brick and stone started to replace tamped earth as the wall building material, because they offered better protection and durability. This change in material gave rise to a number of necessary accommodations with regard to logistics, and inevitably a drastic increase in costs. Instead of being able to draw on local resources, building projects now required brick-kilns, quarries, and transportation routes to deliver bricks to the work site. Also, masons had to be hired since the local peasantry proved inadequate for the level of sophistication that brick constructions required. Work that originally could be done by one man in a month with earth now required 100 men to do in stone.
The Walls of Xuanfu–Datong and the western reaches , part of the Xuanfu stretch of the Great Wall. The gate structure is a Qing dynasty construction. With the Ordos now adequately fortified, the Mongols avoided its walls by riding east to invade
Datong and
Xuanfu, which were two major garrisons guarding the corridor to Beijing where no walls had been built. The two defence lines of Xuanfu and Datong (abbreviated as "Xuan–Da") left by the Northern Qi and the early Ming had deteriorated by this point, and for all intents and purposes the inner line was the capital's main line of defence. From 1544 to 1549,
Weng Wanda (翁萬達; 14981552) embarked on a defensive building program on a scale unprecedented in Chinese history. Troops were re-deployed along the outer line, new walls and beacon towers were constructed, and fortifications were restored and extended along both lines.
Firearms and
artillery were mounted on the walls and towers during this time, for both defence and signalling purposes. The project's completion was announced in the sixth month of 1548. At its height, the Xuan–Da portion of the Great Wall totalled about of wall, with some sections being doubled-up with two lines of wall, some tripled or even quadrupled. The outer frontier was now protected by a wall called the "outer border" (外邊,
wàibiān) that extended from the Yellow River's edge at the Piantou Pass (偏頭關) along the Inner Mongolia border with Shanxi into Hebei province; the "inner border" wall (內邊,
nèibiān) ran southeast from Piantou Pass for some , ending at the
Pingxing Pass; a "river wall" (河邊,
hébiān) also ran from the Piantou Pass and followed the Yellow River southwards for about . As with Yu Zijun's wall in the Ordos, the Mongols shifted their attacks away from the newly strengthened Xuan–Da sector to less well-protected areas. In the west,
Shaanxi province became the target of nomads riding west from the Yellow River loop. The westernmost fortress of Ming China, the
Jiayu Pass, saw substantial enhancement with walls starting in 1539, and from there border walls were built discontinuously down the Hexi Corridor to
Wuwei, where the low earthen wall split into two. The northern section passed through
Zhongwei and
Yinchuan, where it met the western edge of the Yellow River loop before connecting with the Ordos walls, while the southern section passed through
Lanzhou and continued northeast to
Dingbian. The origins and the exact route of this so-called "Tibetan loop" are still not clear.
From Beijing to Shanhai Pass In 1550, having once more been refused a request for trade, the
Tümed Mongols under
Altan Khan invaded the Xuan–Da region. However, despite several attempts, he could not take Xuanfu due to Weng Wanda's double fortified line while the garrison at Datong bribed him to not attack there. Instead of continuing to operate in the area, he circled around Weng Wanda's wall to the relatively lightly defended
Gubeikou, northeast of Beijing. From there Altan Khan passed through the defences and raided the suburbs of Beijing. According to one contemporary source, the raid took more than 60,000 lives and an additional 40,000 people became prisoners. As a response to this raid, the focus of the Ming's northern defences shifted from the Xuan–Da region to the
Jizhou and
Changping Defence Commands where the breach took place. Later in the same year, the dry-stone walls of the Jizhou–Changping area (abbreviated as "Ji–Chang") were replaced by stone and mortar. These allowed the Chinese to build on steeper, more easily defended slopes and facilitated construction of features such as
ramparts,
crenelations, and
peepholes. The effectiveness of the new walls was demonstrated in the failed Mongol raid of 1554, where raiders expecting a repeat of the events of 1550 were surprised by the higher wall and stiff Chinese resistance. In 1567
Qi Jiguang and
Tan Lun, successful generals who fended off the
coastal pirates, were reassigned to manage the Ji–Chang Defense Commands and step up the defences of the capital region. Under their ambitious and energetic management, 1200 brick watchtowers were built along the Great Wall from 1569 to 1571. These included the first large-scale use of hollow watchtowers on the Wall: up until this point, most previous towers along the Great Wall had been solid, with a small hut on top for a sentry to take shelter from the elements and Mongol arrows; the Ji–Chang towers built from 1569 onwards were hollow brick structures, allowing soldiers interior space to live, store food and water, stockpile weapons, and take shelter from Mongol arrows. Altan Khan eventually made peace with China when it opened border cities for trade in 1571, alleviating the Mongol need to raid. This, coupled with Qi and Tan's efforts to secure the frontier, brought a period of relative peace along the border. However, minor raids still happened from time to time when the profits of plunder outweighed those of trade, prompting the Ming to close all gaps along the frontier around Beijing. Areas of difficult terrain once considered impassable were also walled off, leading to the well-known vistas of a stone-faced Great Wall snaking over dramatic landscapes that tourists still see today. Wall construction continued until the demise of the Ming dynasty in 1644. In the decades that led to the
fall of the Ming dynasty, the Ming court and the Great Wall itself had to deal with simultaneous internal rebellions and the
Manchu invasions. In addition to their conquest of Liaodong, the Manchus had raided across the Great Wall for the first time
in 1629, and again in 1634, 1638, and 1642. Meanwhile, the rebels led by warlord
Li Zicheng had been gathering strength. In the early months of 1644, Li Zicheng declared himself the founder of the
Shun and marched towards the Ming capital from Shaanxi. His route roughly followed the line of the Great Wall, in order to neutralize its heavily fortified garrisons. The crucial defences of Datong, Xuanfu, and Juyong Pass all surrendered without a fight, and the
Chongzhen Emperor hanged himself on 25 April as the Shun army entered Beijing. At this point, the largest remaining Ming fighting force in North China was in Shanhai Pass, where the Great Wall meets the Bohai Sea. Its defender
Wu Sangui, wedged between the Shun army within and the Manchus without, decided to surrender to the Manchus and opened the gates for them. The Manchus, having thus entered through the Great Wall, defeated Li Zicheng at the
Battle of Shanhai Pass and seized Beijing on June5. They eventually defeated both the rebel-founded Shun dynasty and the
remaining Ming resistance, establishing their rule over all of China as the Qing dynasty. Opinions about the Wall's role in the Ming dynasty's downfall are mixed. Historians such as
Arthur Waldron and
Julia Lovell are critical of the whole wall-building exercise in light of its ultimate failure in protecting China; the former compared the Great Wall with the failed
Maginot Line of the French in
World War II. However, independent scholar
David Spindler notes that the Wall, being only part of a complex foreign policy, received "disproportionate blame" because it was the most obvious relic of that policy. ==Qing dynasty (1644–1911)==