The Qifu, a western Xianbei tribe whose tongue Shimunek classifies among the Serbi (para-Mongolic) languages, migrated from north of the Gobi Desert to the Yin Mountains under their ancestor Rufu, then west past the Hetao to the Gaoping River near modern Guyuan, Ningxia, where they annexed the Xianbei Lujie tribe and its 70,000 followers. Settling at Mount Dujian in modern Jingyuan County, Gansu, Qifu Sifan submitted to the Di-led Former Qin in 371. When Fu Jian was killed in 385, Qifu Guoren declared himself Grand Chanyu, minted a new reign era, and built a capital on the Yongshi River, founding a state that would rule southwestern Gansu's Longxi region and later parts of northeastern Qinghai.
Qifu kings ruled as monarchs who repeatedly accepted lesser vassal titles from Former Qin, Later Qin, Eastern Jin, and Northern Wei, calling their state Qin only in 395–400, 409–411, and 414–431. They shifted capitals nine times—Yongshicheng, Jincheng, Xicheng, Yuanchuan, Dujianshan, Tanjiao, Fuhan, Dinglian, and Nan'an—with Fuhan in modern Linxia holding longest at eighteen unbroken years. In 394 Qifu Gangui killed the last Former Qin ruler Fu Chong and the Chouchi ruler Yang Ding in battle, extinguishing Former Qin and occupying all of Longxi. Under Qifu Chipan the court endorsed Buddhism, founding the Bingling Temple beside the Yellow River.
Daily rule fused nomadic Xianbei aristocracy with Chinese agrarian administration in the Longxi corridor. Qifu courts employed numerous officials bearing Dingling (Gaoche) surnames—Zhai, Wuyin, Yizhan, and Chilu—reflecting the tribe's deep Gaoche connections, and the name Qifu itself may derive from the Gaoche surname Qifuli. Guoren spent his reign subjugating neighboring tribes; later kings extracted tribute from the Tuyuhun and launched repeated campaigns against them and other peoples to broaden the state's reach, hauling plunder and dependents back to successive river capitals.
Western Qin surrendered to Later Qin in 400 and was extinguished for nearly a decade until Gangui restored it at Mount Dujian in 409 as Later Qin crumbled against Helian Xia and Southern Liang. In 412 Gangui was assassinated by his nephew Qifu Gongfu; Gangui's son Qifu Chipan defeated the killer, took the throne, and conquered Southern Liang in 414, though wars with Northern Liang followed. After Liu Yu destroyed Later Qin in 417, Chipan submitted to Jin as a vassal. Qifu Mumo's short reign ended the line when Helian Xia forces extinguished the state in 431, and its territory passed to Xia.
Western Qin was less a single fixed kingdom than a shifting Xianbei power embedded in the Sixteen Kingdoms. Its rulers repeatedly changed capitals, accepted subordinate titles from stronger Chinese states, and only sometimes used the name Qin. The pattern mattered: a small ruling clan could survive by moving between loyalties while keeping its base around Longxi, the Gansu corridor, and later northeastern Qinghai.
The state’s geography joined river valleys, upland pasture, and routes toward the Hexi and Qinghai. That mixture shaped its politics. Qifu campaigns against the Tuyuhun and neighboring tribes drew on mounted forces, while the seizure of Former Qin territory brought commanderies, walled towns, and taxable settled communities under Xianbei rule. Later, Buddhist patronage at Fuhan tied the regime to a religious tradition already spreading through northwest China.
Rulers
Wars & turning points
Rulers & characters
- Qifu Guoren r. 385–388 CE [3]Founding King of Western Qin · Qifu clan
After Former Qin ruler Fu Jian was killed in 385, Guoren claimed the title Grand Chanyu, introduced a reign era, and built his capital around the Yongshi River. He accepted the title Prince of Yuanchuan in 387, becoming a Former Qin vassal while consolidating neighboring tribes.
His new reign era and the construction of a capital around Yongshi marked the moment the Qifu began presenting themselves as an independent ruling house.
- Qifu Gangui r. 388–400 and 409–412 CE [3]King of Qin and restorer of Western Qin · Qifu clan
Gangui moved the capital to Jincheng, campaigned against neighboring tribes, and received tribute from the Tuyuhun. After Former Qin fell, he took its remaining territory, killed Fu Chong and the Chouchi ruler Yang Ding, and claimed the title King of Qin in 395. He restored the state in 409, then became a nominal vassal of Later Qin as King of Henan.
His rule was marked by repeated changes of allegiance and capital, yet he twice rebuilt the Qifu state after its temporary collapse.
- Qifu Chipan r. 412–428 CE [3]King of Qin · Qifu clan
Chipan defeated the usurper Qifu Gongfu and moved the capital to Fuhan, which became the longest-serving Western Qin capital. He conquered Southern Liang in 414, restored the title King of Qin, fought Northern Liang, and campaigned against the Tuyuhun. His reign also saw the first construction of Bingling Temple, showing the state’s growing Buddhist patronage.
Bingling Temple was first built under Chipan, linking the Qifu court at Fuhan to a major Buddhist religious center.
- Qifu Mumo r. 428–431 CE [3]Final King of Qin · Qifu clan
Mumo inherited a state whose capitals had shifted repeatedly and whose survival depended on alliances with neighboring powers. He ruled during renewed pressure from Xia and the Eastern Jin, while the court moved from Fuhan to Dinglian and then Nan'an. His short reign ended with the final defeat of Western Qin in 431.
The last Western Qin ruler’s reign was defined by a compressed sequence of capital moves and by the approach of enemies from several directions.
Wars, rebellions & turning points
- War Conflict with Later Liang in the Hexi [3]Later Liang
Qifu Gangui expanded beyond Longxi and came into conflict with Later Liang in the Hexi corridor. The confrontation placed the Western Qin’s Xianbei military power against another regional regime competing for control of the strategic routes linking the northwest to the interior.
Outcome: The conflict formed part of the wider struggle among Sixteen Kingdoms states for the Hexi and Gansu corridors.
- War Seizure of Former Qin’s remaining territory [3]Former Qin and Chouchi
After Later Qin decisively defeated Former Qin and captured Fu Deng, Gangui seized the remaining Former Qin lands. The Qifu occupied Longxi and killed Fu Chong and the Chouchi ruler Yang Ding in battle, bringing Former Qin’s political end and giving Western Qin control over important settled territory.
Outcome: Former Qin ceased to exist, and Gangui claimed the title King of Qin in 395.
- Treaty Surrender to Later Qin [3]Later Qin
Qifu Gangui surrendered to Later Qin, temporarily ending the first Western Qin state. The settlement reflected the wider military pressure on the Qifu and the shifting balance among regional regimes in northwest China.
Outcome: Western Qin was discontinued for nine years before Gangui restored it in 409.
- Rebellion Restoration of Western Qin [3]Later Qin
Facing defeats from Later Qin and the breakaway states of Helian Xia and Southern Liang, Gangui restored Western Qin at Mount Dujian in 409. He returned the capital to Yuanchuan in 410, captured Later Qin commanderies, and then accepted a nominal vassal arrangement as King of Henan.
Outcome: The Qifu recovered a substantial regional position, though the restored state remained entangled in Later Qin’s wars.
- Shock Assassination of Qifu Gangui [3]Qifu Gongfu
After moving the capital to Tanjiao, Gangui was assassinated by Qifu Gongfu. The succession crisis immediately threatened the restored state, but his son Qifu Chipan defeated Gongfu and seized the throne.
Outcome: Chipan ended the internal challenge and moved the court to Fuhan.
- War Conquest of Southern Liang [3]Southern Liang
Under Chipan, Western Qin conquered Southern Liang and restored the title King of Qin. The victory expanded the Qifu’s influence across the region, while contact with Northern Liang soon produced repeated fighting between the two states.
Outcome: Southern Liang was brought under Western Qin control, and the Qifu renewed their claim to the Qin title.
- Treaty Submission to the Eastern Jin [3]Eastern Jin
When Liu Yu conquered Later Qin, Chipan submitted to the Jin as a vassal. The decision showed how Western Qin adapted to the collapse of one regional power by seeking protection under another.
Outcome: Western Qin became a Jin vassal while retaining its own ruler and regional administration.
- Shock Final defeat of Western Qin [3]Helian Xia and Northern Wei
Western Qin’s final years were shaped by pressure from Helian Xia and Northern Wei. After Mumo’s accession, the court moved from Fuhan to Dinglian and then Nan'an as the state contracted under military pressure, and the dynasty ended in 431.
Outcome: The Western Qin state was destroyed, ending the Qifu dynasty’s rule in the northwest.
Achievements & reckoning
Achievements
- Qifu settlement in the Longxi region [3]
The Qifu clan, a western Xianbei group, moved south from the Gobi and Yin Mountains, settled near the Gaoping River around modern Guyuan, and eventually established themselves at Mount Dujian in present-day Jingyuan County. This long movement created the regional base from which Western Qin later drew its power.
- Control of the Gansu and Longxi corridor [3]
By taking Former Qin’s remaining territory, the Qifu gained Longxi and its settled commanderies. Their campaigns against the Tuyuhun and other tribes extended influence toward Qinghai, while capitals at Jincheng, Yuanchuan, Fuhan, Dinglian, and Nan'an anchored successive phases of control.
- Construction of Bingling Temple [3]
Bingling Temple was first built during the reign of Qifu Chipan, when the capital stood at Fuhan. Its foundation connected the Western Qin court with Buddhist religious and artistic activity in the Linxia region, where cliff temples later became a major center of northwest Chinese Buddhism.
- Flexible use of regional alliances [3]
Western Qin rulers repeatedly accepted vassal titles from Former Qin, Later Qin, and the Eastern Jin, while also campaigning against neighboring states. This strategy allowed the Qifu to preserve their ruling house through changing alliances, though it also left the state vulnerable to humiliation and territorial loss.
Reckoning
- Repeated loss and restoration of the state [3]
Western Qin’s first phase ended when Gangui surrendered to Later Qin in 400, and the state had to be rebuilt in 409. The interruption shows how quickly regional regimes could be dismantled by military defeat and how dependent their survival was on one ruling clan’s alliances.
- Internal succession violence [3]
Qifu Gongfu assassinated Gangui in 412, forcing Chipan to defeat him before taking the throne. The episode exposed the fragility of the ruling house and the danger that court succession could turn a regional dynasty into a battlefield.
- Pressure from multiple rival states [3]
Western Qin faced Later Qin, Helian Xia, Southern Liang, Northern Liang, the Eastern Jin, and Northern Wei at different stages. Campaigns against the Tuyuhun and other tribes broadened its influence but consumed military attention in a region where several powers competed for the same corridors.
- Final territorial contraction [3]
The last phase of Western Qin was marked by repeated capital relocations and military pressure from Xia and Northern Wei. The state ended in 431, leaving the Qifu dynasty’s northwest power base destroyed and its former territory absorbed into the political order of the following regimes.
Deeper cuts
A language on the move
The Qifu were a western Xianbei people whose language was classified by Shimunek as “Serbi,” a para-Mongolic branch alongside Taghbach, Tuyuhun, and Khitan. Their history was carried through migration rather than a fixed homeland: from north of the Gobi Desert to the Yin Mountains, then toward the Gaoping River and Mount Dujian. The language therefore belonged to a world of mobile steppe and frontier communities, not to a single settled kingdom.
The Qifu name itself may have come from the Gaoche surname Qifuli, a reminder that ethnic and political identities overlapped in the northwest.
Buddhism at Fuhan
Western Qin’s religious history becomes visible through architecture. Under Qifu Chipan, the court moved to Fuhan, and Bingling Temple was first built there. The temple’s cliff-side setting in the Linxia region joined the Qifu state to the spread of Buddhism across northwest China. Patronage at a moving capital gave the regime a durable religious landmark even as political capitals shifted and the dynasty’s fortunes declined.
Bingling Temple’s earliest construction belongs to Chipan’s reign, making it a physical witness to Western Qin’s Buddhist alliances.
Capitals that kept moving
Western Qin’s capitals were unusually mobile: Yongshicheng, Jincheng, Xicheng, Yuanchuan, Dujianshan, Tanjiao, Fuhan, Dinglian, and Nan'an appear across its history. Fuhan was the longest-serving capital, at 18 years without interruption, but even that stability was exceptional. For officials, soldiers, and households, political life meant relocating with the court, following rulers whose survival depended on shifting alliances.
Fuhan’s 18-year run as an uninterrupted capital contrasts with the repeated relocations that defined the rest of the dynasty.
Routes through the northwest
The Qifu state sat astride the Gansu corridor, where routes linked settled Longxi with the Hexi frontier and the pastoral zones of Qinghai. Their campaigns against the Tuyuhun and other tribes were not isolated military raids; they were part of a wider system of exchange and pressure across the northwest. Control of commanderies, tribute relationships, and tribal alliances gave Western Qin access to resources beyond its immediate core.
Tribute from the Tuyuhun and campaigns against neighboring peoples show how the Qifu connected local power to a wider frontier network.
Cliff temples and frontier patronage
The most visible artistic legacy of Western Qin is tied to the Buddhist cliff-temple tradition around Fuhan and the Bingling area. The state’s rulers did not simply inherit a settled Chinese cultural sphere; they sponsored religious building while maintaining a Xianbei ruling identity. The result was a frontier culture in which court power, Buddhist institutions, and local geography reinforced one another.
The pairing of a mobile Xianbei dynasty with the construction of Bingling Temple shows how political authority could be expressed through religious architecture.
Structural lenses
Drafted by GPT-6 Luna (lens-v1.1) from the cited sources.
Mobile Tribal Followings and the Incorporation of Lujie
Qifu communities remained mobile within the Chinese interior, shifting their base from the Yin Mountains through the Hetao region, Gaoping River country, and Mount Dujian. Under Qifu Youlin, they annexed the Xianbei Lujie, whose following numbered 70,000; officials with Dingling surnames also show that the ruling circle included groups beyond the Qifu.
Titles as Instruments of Vassalage and Sovereignty
Qifu rulers used titles to mark changing claims to authority. Guoren called himself Grand Chanyu and introduced a new reign era, then accepted the title Prince of Yuanchuan from Former Qin in 387. Gangui later claimed the title King of Qin; as a nominal Later Qin vassal, he was appointed King of Henan.
Underappreciated & strange truths
Qifu Chipan built the first Bingling Temple grottoes beside the Yellow River while his armies marched against Tuyuhun tribesmen, and his court at Fuhan kept Dingling-surnamed ministers whose grandfathers had crossed the Gobi with the Qifu herds.
- A “Western Qin” that sometimes refused the name Qin [3]
The Qifu rulers used the title King of Qin only in selected periods: 395–400, 409–411, and 414–431. For much of its existence, Western Qin was a retrospective historiographical label rather than the state’s own chosen name, and its rulers preferred lesser peerage titles while serving stronger powers.
- A dynasty restored after nine years [3]
Western Qin was not a continuous 387–438 state in the simple sense. Gangui surrendered in 400, and the Qifu restored their kingdom in 409. The interruption and restoration make the dynasty’s history a story of repeated political rebirth rather than a straight line of expansion.
- The Qifu were both migrants and state builders [3]
The Qifu moved from the Gobi and Yin Mountains through the Gaoping River region before settling at Mount Dujian. Their ancestry included links with Gaoche and Dingling peoples, and officials with Dingling surnames served the Western Qin. The ruling state grew out of layered frontier communities rather than a single fixed ethnic bloc.
State ledger
- Lifespan
- 387–438 CE
- Peak territory
- 229,139 km²
- Capital
- Lanzhou
Lineage & succession
Connected world
Served successively as vassal to Former Qin, Later Qin, Eastern Jin, and Northern Wei; fought Later Liang, Southern Liang, Northern Liang, and the Tuyuhun across the Hexi corridor; and passed its lands to Helian Xia.
Drafted by Beam (links-v2.0) from the cited sources.
-
Qifu Guoren became a vassal of Former Qin in 387; Qifu Gangui later seized its Longxi territory, killing Fu Chong in battle and ending the dynasty.
-
Qifu Gangui surrendered to Later Qin in 400 and later held nominal vassal status as King of Henan while capturing several Later Qin commanderies.
-
Qifu Gangui campaigned against Southern Liang from 409, and Qifu Chipan conquered it outright in 414.
-
Western Qin received tribute from the Tuyuhun and its rulers launched repeated campaigns against them to broaden their influence.
-
After conquering Southern Liang in 414, Western Qin came into contact with Northern Liang and the two fought on multiple occasions.
Drafted by Fireworks Firerouter (polity-v1.5) from five cited sources · almanac by MiniMax M3.1 Flash (almanac-v1.1) · deep lenses by GPT-6 Luna (lens-v1.1), and checked that every citation points to one of them. See the evidence How AI is used
XCities & tongues
Mapped cities & trade towns
| City | Country | Near peak | Peak pop. | Growth | Globe |
|---|---|---|---|---|---|
| Lanzhou | China | — | 2.00M (1975 CE) | Locate → | |
| Tianshui | China | — | 85k (1000 CE) | Locate → |
Languages across the footprint
| Language | Family | Macroarea | Horizon |
|---|---|---|---|
| Salar | Turkic | Eurasia | Glottolog 5.3 |
| Tangut | Sino-Tibetan | Eurasia | Glottolog 5.3 |
XICulture & letters
Primary works, letters & books
No matching primary books indexed for this span yet.
XIISources & provenance
- Cliopatria Historical Polity Borders v0.2.0 (Seshat Databank). CC-BY-4.0.
- Wikidata Historical Entities & Lineage Spine. CC0-1.0.
- Wikipedia — Western Qin. CC-BY-SA-4.0.
- Reba / Chandler Historical Urban Population Estimates (3700 BCE–1975 CE). CC-BY-4.0.
- Glottolog 5.3 Global Language & Family Classification. CC-BY-4.0.