Castles

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

WhenAttackerDefenderNumbersHow it was foughtResult
1372None: the fort is foundedMing, under General Feng Sheng5Not givenNot an attackBuilt
Date not givenTimur, feared but never arrived6MingNot givenNot an attack. The fort was strengthened6No attack came
Between 1493 and 1495None: the Ming shut the pass against Turfan2Ming172 envoys held at the border2Not an attack. Trade and tribute cut offPass closed, reopened about 14972
About 1516 to 1517Turfan, under Mansur Khan2Ming frontier troops; Suzhou cityMing: 700 killed in one detachment. Turfan: not given2A raid past the pass; a field battle; a demand under the walls of Suzhou2Suzhou held. The fort is not mentioned
1524 and 1525Turfan, under Mansur Khan2Ming, under Chen Jiuchou2Turfan: 20,000 horsemen. Ming: not given2Suzhou surrounded; hard fighting2Suzhou held. The fort is not mentioned. Pass then closed2,3
1528Oirat horsemen sent by Mansur2MingRaiders: more than 2,0002A raid toward Suzhou, beaten in the field2Driven off. The fort is not mentioned
1511 to 1522, as claimedNot givenNot givenNot given"sieged twice",1 with no detailNot established
September to October 1873Qing, under Zuo Zongtang4Hui rebels in Suzhou, under Ma Wenlu4Qing: 15,0004Siege guns against Suzhou, not against the fort4Suzhou 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

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

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

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

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

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

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

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

TacticUsed at or near JiayuguanDid it work?
Assault on the fort's wallsNone recorded in the sources readNot tried, as far as these sources say
Siege of the fortClaimed "twice from 1511 to 1522" by one tour company page1Not established
Riding past the pass to raid SuzhouAbout 1516 to 1517; 1524; 1525; 15282The raiders reached Suzhou each time, so the frontier line did not stop them. They never took the city2
Help from plotters inside SuzhouAbout 1516 to 15172No: the plot was broken up before the raiders arrived2
Surrounding a detachment in the openAbout 1516 to 15172Yes: 700 Ming soldiers died2
Closing the pass to trade and envoys1493 to 1497;2 1524;2,3 15393Yes in the 1490s: Turfan gave way.2 After 1524 the raids went on for four more years2
Siege guns1873, against Suzhou and not the fort4Yes: the city fell in under two months4

Not yet established

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

  1. 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.
  2. 明史 卷三百二十九, 西域一 (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.
  3. 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.
  4. Dungan Revolt (1862–1877), Wikipedia. The section "Suzhou (Jiuquan), 1873" read in full. The page does not mention Jiayuguan.
  5. 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.
  6. Jiayu Pass, Wikipedia. Read in full, 2026-11-22.
  7. 嘉峪关 (Jiayu Pass), Chinese Wikipedia. In Chinese. History section, legend and information boxes read in full.
  8. 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.
  9. Ming–Turpan conflict, Wikipedia. Read in full. A short page.
  10. Mansur Khan (Moghul Khan), Wikipedia. Read in full.
  11. Jiuquan, Wikipedia. Opening and history section read in full.
  12. Study Proves Jiayuguan was finalized in the Qing Dynasty, Tianjin University. A news article from the university's School of Architecture. Read in full.