Jiayuguan: attacks and sieges
Written 22 November 2026.
In brief. No source read for this entry records an attack on the fort of Jiayuguan itself, or its capture, at any date. One tour company's page says it "was sieged twice from 1511 to 1522",1 but gives no detail, and nothing else read supports it. What the sources do record is fighting around the fort. Raiders from Turfan under Mansur Khan came in from the west at least four times between about 1516 and 1528 and reached the walls of Suzhou, the city inside the pass, once with 20,000 horsemen.2 Each time they were driven off or left.2 The pass was also used as a weapon in its own right: the Ming shut it to cut off trade, in the 1490s and again in 1524 and 1539.2,3 In 1873 a Qing army took Suzhou by siege, and its general visited the fort that year.4,5 So this is a short entry about a fort whose own walls, as far as these sources go, were never tested.
At a glance
| When | Attacker | Defender | Numbers | How it was fought | Result |
|---|---|---|---|---|---|
| 1372 | None: the fort is founded | Ming, under General Feng Sheng5 | Not given | Not an attack | Built |
| Date not given | Timur, feared but never arrived6 | Ming | Not given | Not an attack. The fort was strengthened6 | No attack came |
| Between 1493 and 1495 | None: the Ming shut the pass against Turfan2 | Ming | 172 envoys held at the border2 | Not an attack. Trade and tribute cut off | Pass closed, reopened about 14972 |
| About 1516 to 1517 | Turfan, under Mansur Khan2 | Ming frontier troops; Suzhou city | Ming: 700 killed in one detachment. Turfan: not given2 | A raid past the pass; a field battle; a demand under the walls of Suzhou2 | Suzhou held. The fort is not mentioned |
| 1524 and 1525 | Turfan, under Mansur Khan2 | Ming, under Chen Jiuchou2 | Turfan: 20,000 horsemen. Ming: not given2 | Suzhou surrounded; hard fighting2 | Suzhou held. The fort is not mentioned. Pass then closed2,3 |
| 1528 | Oirat horsemen sent by Mansur2 | Ming | Raiders: more than 2,0002 | A raid toward Suzhou, beaten in the field2 | Driven off. The fort is not mentioned |
| 1511 to 1522, as claimed | Not given | Not given | Not given | "sieged twice",1 with no detail | Not established |
| September to October 1873 | Qing, under Zuo Zongtang4 | Hui rebels in Suzhou, under Ma Wenlu4 | Qing: 15,0004 | Siege guns against Suzhou, not against the fort4 | Suzhou taken. Nothing recorded at the fort |
1372: why the fort was built (not an attack)
Jiayuguan stands where the long corridor of land leading west out of China is at its tightest. The pass is "at the narrowest point of the western section of the Hexi Corridor",6 and the fort was built near an oasis that was then on the far western edge of China.6
It was "established along the Silk Road in 1372"5 and "served as the western door to China".5 The first work was done under General Feng Sheng, who "built the first garrison in the heavily invaded Hexi Corridor".5 The reason given is raiding: "Attacks by Mongols and Uyghurs along this route were problematic", and the Hongwu Emperor meant to stop them.5 A journal article puts it another way: the pass was set up "to resist the remaining elements of the Yuan dynasty",3 the Mongol dynasty the Ming had just replaced.
It was not finished quickly. Modest defences went up first, and the present fortifications "took 168 years to complete".5 It was never only a fort. The same journal article calls it "not only a military stronghold but also the primary pass on the ancient Silk road to the West".3
The record
- Who and why. Feng Sheng, for the Hongwu Emperor, against raids "by Mongols and Uyghurs";5 or against "the remaining elements of the Yuan dynasty".3 The two do not contradict each other.
- When. 1372 in most sources read.1,3,5,7 Wikipedia in English is more careful: "sometime around the year 1372".6 A China Daily article carried by the Gansu provincial government says a fortress "was built starting in 1539";8 other sources give 1539 as the year of the last large additions (see below).7
- Stages. Wikipedia in Chinese dates the gate tower to 1495, the two towers of the inner city with offices and storehouses to 1506, and the corner towers, the wing walls north and south of the fort and the beacon towers to 1539.7
- Numbers. The size of the garrison is not given in any source read.
The fear of Timur (no attack came)
One threat is named that never arrived. Wikipedia says the fortress "was greatly strengthened due to fear of an invasion by Timur",6 the Central Asian conqueror. Timur set out, but he "died of old age while leading an army toward China".6
The record
- Who and why. Timur, leading an army toward China.6 His reasons are not given on the page read.
- Tactics. None. The Ming answer was building work.6
- Numbers. Not given.
- Outcome. No attack. The page gives no date for the strengthening or for Timur's death.6
1493 to 1497: the pass is shut against Turfan (not an attack)
The first recorded use of Jiayuguan in a conflict was not a defence at all. It was the shutting of a door.
The quarrel was over Hami, an oasis kingdom far to the west that answered to the Ming.9 The Ming history sets Hami at 1,600 li from Jiayuguan (a li is a Chinese measure of distance).2 In 1493 Ahmad, the ruler of Turfan, seized Hami and carried off its prince.9 The Ming did not march at once. Officials advised that if no chance to strike appeared, the court should seal Jiayuguan and turn Turfan's envoys away.2
That is what was done. The official sent to Gansu refused Turfan's gifts, held its envoys at the border, and, in the words of the Ming history, "閉嘉峪關,永絕貢道"2 (shut the Jiayu Pass and cut the tribute road for good). English Wikipedia describes the same policy: the Ming "imposed an economic blockade on Turpan".9
It worked, with help from a surprise night attack on Hami by a Ming force.2 Turfan's neighbours, shut out as well, blamed Ahmad.2 He handed back the prince and asked for the road to be reopened, and the court agreed.2
The record
- Who and why. The Ming court, acting through an official named 張海 (Zhang Hai in modern spelling; the spelling is ours), against Ahmad of Turfan, to force the return of Hami and its prince.2
- Tactics. Closing the pass to envoys and trade. The Ming history says the envoys held were "羈前後使臣一百七十二人於邊"2 (172 envoys, earlier and later, detained at the border).
- Numbers. 172 envoys held.2 No soldiers are counted.
- Dates. The Ming history dates by reign years: the seizure of Hami in the sixth year of Hongzhi, Zhang Hai's return to the capital in the first month of the eighth, and Ahmad's climb-down in the winter of the tenth.2 English Wikipedia gives 1493 for the seizure,9 and Chinese Wikipedia equates the eighth year of Hongzhi with 1495,7 so the tenth is 1497 (that sum is ours).
- Outcome. Hami's prince was returned and tribute was allowed again.2
About 1516 to 1517: Mansur's raid reaches Suzhou (the fort is not mentioned)
Ahmad's son Mansur9 was, in the judgement of the Ming history, more cunning than his father.2 In 1513 the prince of Hami "switched his allegiance from the Chinese Ming Emperor to Mansur Khan",10 and "after this several expeditions were undertaken by the khan against China proper".10 His army took Shazhou, which is Dunhuang, and "reached the Jiayu Pass in Gansu".10
The Ming history tells the next part without once naming the fort. A man who had fallen out with Mansur bought his life by promising a payment of cloth, to be handed over at Suzhou, and by telling him that Suzhou could be taken.2 Suzhou is the old name of Jiuquan,11 and it lay inside the pass.2 Mansur's men seized Shazhou and came in force.2
Four Ming officers led troops out to meet them. One, 芮寧 (Rui Ning; the spelling is ours), arrived first and met the raiders alone. They surrounded him with their whole force while smaller parties pinned down the other officers, and "寧所部七百人皆戰没"2 (the 700 men under Ning all died fighting).
Then the raiders rode up to Suzhou: "賊薄肅州城,索所許幣"2 (the raiders pressed up to the wall of Suzhou and demanded the promised cloth). The official in the city, 陳九疇 (Chen Jiuchou; the spelling is ours), held firm, and had already cut off the people inside who were to help the raiders.2 The raiders learned their plan was known, feared that relief was coming, plundered widely and left.2 On their way home a Ming force with allies from Hami beat them and took 79 heads.2
The record
- Who and why. Mansur Khan of Turfan, whose Chinese name on Wikipedia is 速檀满速儿.10 English Wikipedia says the fighting came "over disputes on tribute", when the Ming "rejected tribute missions from Turpan".9 The Ming history adds the promised payment and the plotters inside Suzhou.2
- Tactics. A mounted raid; a detachment surrounded and destroyed in the open; a threat against a walled city that depended on help from inside. The city held because the plot was broken up first.2
- Numbers. 700 Ming soldiers killed with Rui Ning; 79 raiders' heads taken later.2 The size of Mansur's force is not given.
- When. The Ming history does not date the raid. It says the urgent report reached the court in the first month of the twelfth year of Zhengde.2 English Wikipedia lists fighting in 1517.9
- What happened at the fort. Not given. The Ming history treats Suzhou as inside the pass: it speaks elsewhere of peoples who had fled to Suzhou and could not be driven "不可驅之出關"2 (back out through the pass, in our gloss). Raiders from the west who reached Suzhou had therefore got past the line the fort guarded. That reading is ours, not a source's, and no source read says whether they forced the gate, went round it, or found it undefended. Chinese Wikipedia dates the walls running north and south from the fort to 1539,7 so at this date the fort may have stood without them; that too is our reading.
- Outcome. Suzhou was not taken. The raiders withdrew with plunder.2
1524 to 1528: 20,000 horsemen at Suzhou (the fort is not mentioned)
Seven years later Mansur came back with an army. In the autumn of the third year of Jiajing, says the Ming history, he "擁二萬騎圍肅州,分兵犯甘州"2 (led 20,000 horsemen to surround Suzhou, and sent part of his force against Ganzhou). English Wikipedia has the same figure and the year: "Mansur invaded the Ming dynasty in 1524 with 20,000 men through Suzhou District".9
Chen Jiuchou, now governor of Gansu, and the regional commander fought hard and beat them.2 One of Mansur's chief men was killed, and the raiders fell back.2 An army sent from the capital got as far as Lanzhou, found the enemy long gone, and turned round.2 Chen reported that Mansur himself had died under stone shot. He had not, and the false report later helped to ruin Chen.2
Chen's advice after the fight was the old remedy. He asked the court "乞閉關絶貢,專固邊防"2 (to shut the pass, end the tribute and put everything into the border defences), and the court agreed.2 A modern study counts this as the "first closure of the Jiayuguan Pass in 1524 CE".3
The raiders returned to Suzhou the next autumn and surrounded a Ming officer, then fled when relief came.2 In 1528, angry that one of his commanders had gone over to the Ming with 2,000 followers, Mansur sent a subordinate who "引瓦剌二千餘騎犯肅州"2 (brought more than 2,000 Oirat horsemen to attack Suzhou). A Ming officer attacked and broke them.2
The record
- Who and why. Mansur Khan; "disputes on tribute".9 The Ming history says he planned new raids after his agent at the Ming court was executed.2 On the Ming side Chen Jiuchou and the regional commander 姜奭.2 Wikipedia says the Ming forces included "Mongol troops".9
- Tactics. Suzhou surrounded by cavalry, with a second force raiding Ganzhou; the defenders fought them off. Chen claimed Mansur had died under stone shot;2 the Chinese word can mean shot from a catapult or from a gun, and we cannot tell which. No assault on Jiayuguan is described.
- Numbers. Turfan: 20,000 horsemen in 1524,2,9 more than 2,000 Oirat horsemen in 1528.2 Ming: not given.
- Dates. The Ming history gives the third, fourth and seventh years of Jiajing.2 English Wikipedia gives fighting in "1517, 1524 and 1528"9 and does not mention the raid of the fourth year, which would be 1525 (that sum is ours).
- Outcome. All the raids failed.2,9 But the Ming did not get Hami back: "Turfan also annexed Qumul (Hami)".9 The court was persuaded to stop trying, and to let Turfan send tribute again without asking about Hami.2
1539: the last strengthening, the last closing, and a claim of two sieges
In 1539, by Chinese Wikipedia's account, corner towers and other towers were added to the fort, and walls and beacon towers were built to its north and south.7 The tour company page already quoted says that "it was not until in the year of 1539 that Jiayuguan became a military defense project, an impregnable pass in the real sense".1 A modern study gives the same year for "the final closure of the Jiayuguan Pass in 1539 CE".3
The same tour company page is the only one read that says the fort itself was besieged: "it was sieged twice from 1511 to 1522".1 It names no attacker, no year and no result. The years overlap Mansur's first raid, and it may be a loose memory of it. That is our guess, not a source's.
The record
- Who and why. For the closures, "the central government in China".3 The study says warfare has been suggested as the main cause but argues that "war was not solely responsible for the closure of the Jiayuguan Pass".3
- Tactics. Building; closing the pass.
- Numbers. Not given.
- Outcome. By the study's count, conflicts in the Dunhuang area stopped after 1520, and the Ming frontier settled at Jiayuguan.3
Under the Qing: rebuilt, and passed by a war in 1873 (no attack recorded)
No source read describes how the fort passed from the Ming to the Qing dynasty. Nearby Suzhou changed hands by force at least twice. Wikipedia says only that "Meng Qiaofang took it from Ding Guodong in 1649".11
The fort was rebuilt in peacetime. Researchers at Tianjin University found palace records showing that Jiayuguan "had been overhauled during Emperor Qianlong period in the Qing Dynasty".12 The work "lasted for four years and cost over 50 thousand liang" of silver,12 and the gate towers went "from one floor before to three floors".12 So the towers seen today are not Ming work, by this account.12
War came close once more in the Muslim risings of the 1860s and 1870s, known as the Dungan Revolt. Hui forces under Ma Wenlu held Suzhou,11 "their last stronghold in the Hexi Corridor in west Gansu".4 The Qing general Zuo Zongtang "laid siege to Suzhou in September 1873 with 15,000 troops".4 The city "could not withstand Zuo's siege guns" and "fell on October 24".4 He had 7,000 Hui people executed.4 Suzhou "was completely destroyed by the time it was recovered".11
Of the fort in those years the sources read say one thing: Zuo visited it in 1873 and called it the "First and Greatest Pass under Heaven",5 words later set up on a tablet over an archway.5 Whether the rebels ever held the fort, and whether anyone fought for it, is not given.
The record
- Who and why. Zuo Zongtang for the Qing against Hui forces under Ma Wenlu.4 Wikipedia says Zuo meant to keep the corridor clear of Hui people to prevent "future collusion" between Muslims of Gansu and Shaanxi and those of Xinjiang.4
- Tactics. At Suzhou, siege guns.4 At Jiayuguan, nothing recorded.
- Numbers. Qing: 15,000.4 Defenders: not given; 7,000 executed afterwards.4
- Outcome. Suzhou taken on 24 October 1873.4 The fort was in Qing hands that year, since their general visited it5 (that reading is ours).
The legend of the spare brick (a legend, not a record)
The sources read tell this story as a legend or a tradition.1,5,6 The designer was asked exactly how many bricks the fort would need. He said 99,999.5,6 The official in charge doubted him, or pressed him to make it a round 100,000,5 and one more was added. When the work was done there was one brick left over, "which was placed loose on one of the gates where it remains today".6
One telling names the architect as Yi Kaizhan and the official as Lu Fu, makes the official corrupt, and has the architect save his head by declaring the brick a gift from heaven that held the tower up.5 Even that telling ends on a hedge: "the lone brick supposedly still guards the gateway today".5 Chinese Wikipedia sets the story in the Zhengde years, long after 1372.7 It is a story about builders, not about a siege.
After the soldiers
The fort was remembered less for battles than for departures. People banished from China "were ordered to leave through Jiayuguan for the west",6 and the missionary Mildred Cable, who saw it in the 1920s, found the gate arch covered with the writing of exiles.5 A garrison was still there when she visited.5
It was listed as a protected national site "in March 1961"1 and is counted by Chinese Wikipedia as part of the Great Wall world heritage listing of 1987.7 One historian sums it up: "While time and conflicts have taken their toll on the ancient citadel, it remains one of the best-preserved military fortifications in China".5 He does not say which conflicts.
What held and what failed
| Tactic | Used at or near Jiayuguan | Did it work? |
|---|---|---|
| Assault on the fort's walls | None recorded in the sources read | Not tried, as far as these sources say |
| Siege of the fort | Claimed "twice from 1511 to 1522" by one tour company page1 | Not established |
| Riding past the pass to raid Suzhou | About 1516 to 1517; 1524; 1525; 15282 | The raiders reached Suzhou each time, so the frontier line did not stop them. They never took the city2 |
| Help from plotters inside Suzhou | About 1516 to 15172 | No: the plot was broken up before the raiders arrived2 |
| Surrounding a detachment in the open | About 1516 to 15172 | Yes: 700 Ming soldiers died2 |
| Closing the pass to trade and envoys | 1493 to 1497;2 1524;2,3 15393 | Yes in the 1490s: Turfan gave way.2 After 1524 the raids went on for four more years2 |
| Siege guns | 1873, against Suzhou and not the fort4 | Yes: the city fell in under two months4 |
Not yet established
- Whether the fort itself was ever attacked or taken. No source read says so, apart from the unsupported "sieged twice from 1511 to 1522".1 This is the central gap of the entry.
- How Mansur's raiders passed Jiayuguan on their way to Suzhou, and what the garrison did.
- The size of the garrison at any date, and the names of its commanders.
- The date of Mansur's first raid: the Ming history gives only the month the news arrived.
- When the fort was strengthened against Timur. Only Wikipedia mentions it, and without a date.
- The founding date. Most sources say 1372; one says building started in 1539.8
- How the fort changed hands between Ming and Qing, in the Dungan Revolt, and in the twentieth century. Nothing was found.
- Whether the "closures" of 1524 and 1539 in the modern study are the same events as those in the Ming history. The 1524 one fits Chen Jiuchou's request; we found no record of 1539 in the chapter read.
- The UNESCO page for the Great Wall could not be opened (the site refused the request), so the 1987 listing rests on Chinese Wikipedia here.
- The Ming history is the official history written under the next dynasty, and it tells only the Ming side. Our reading of its classical Chinese has not been checked by a specialist, and the glosses in brackets are ours. Nothing has been checked against a printed history in English, such as Morris Rossabi's work on Ming China and Turfan, which Wikipedia cites.9
About this entry
Each attack is told first as a short story and then set out as a record. The story adds nothing the record does not have: the narrator chooses the order and the emphasis, never the facts. Every statement has a numbered note that leads to its source. Anything that is our own reading is said to be ours. Where two sources disagree, the record gives both. "Not given" means none of the sources read says; it does not mean it is unknown to historians.
Sources
- Jiayuguan Fort, visitourchina.com. A tour company's page, unsigned and without references. Read in full. A weak source, used for the 1961 listing and quoted for its unsupported claim of two sieges.
- 明史 卷三百二十九, 西域一 (History of Ming, chapter 329, Western Regions 1), Chinese Wikisource. The official history of the Ming dynasty, compiled under the Qing; a transcription hosted by the Wikimedia Foundation. In classical Chinese. The sections on Hami and Turfan were read in full for every mention of Jiayuguan, Suzhou and the closing of the pass. Translations and the modern spelling of names are ours.
- Climate-driven desertification and its implications for the ancient Silk Road trade, Climate of the Past 17 (2021). A peer-reviewed journal article by Guanghui Dong and others, published by Copernicus for the European Geosciences Union. Introduction and the section on warfare read in full.
- Dungan Revolt (1862–1877), Wikipedia. The section "Suzhou (Jiuquan), 1873" read in full. The page does not mention Jiayuguan.
- The Fortress of Jiayuguan: Dispatches from China's Far-Flung Silk Road Citadel, MilitaryHistoryNow.com. By Dr George Yagi Jr., a historian at the University of the Pacific; a popular history website, without references. Read in full.
- Jiayu Pass, Wikipedia. Read in full, 2026-11-22.
- 嘉峪关 (Jiayu Pass), Chinese Wikipedia. In Chinese. History section, legend and information boxes read in full.
- The Great Wall of man and nature, China Daily. By Zhao Xu and Ma Jingna, on the Gansu pages that China Daily runs with the Information Office of the Gansu Provincial People's Government. Second page of the article, read in full.
- Ming–Turpan conflict, Wikipedia. Read in full. A short page.
- Mansur Khan (Moghul Khan), Wikipedia. Read in full.
- Jiuquan, Wikipedia. Opening and history section read in full.
- Study Proves Jiayuguan was finalized in the Qing Dynasty, Tianjin University. A news article from the university's School of Architecture. Read in full.