Hou Junji conquers Gaochang, establishing Xizhou and the initial Protectorate General at Jiaohe
· HISTORICAL EVENT
Establishment of the Four Garrisons of Anxi (安西四镇设置)
安西四镇设置
The Establishment of the Four Garrisons of Anxi was a seminal frontier defense program undertaken by the Tang Dynasty and Wu Zhou regimes to govern the Western Regions and protect the continental Silk Road network. Following the conquest of the Kingdom of Gaochang in 640, the Tang established the Protectorate General to Pacify the West at Jiaohe. In 648, after General Ashina She'er subjugated the Kingdom of Kucha, Emperor Taizong relocated the…

OVERVIEW
The Establishment of the Four Garrisons of Anxi was a seminal frontier defense program undertaken by the Tang Dynasty and Wu Zhou regimes to govern the Western Regions and protect the continental Silk Road network. Following the conquest of the Kingdom of Gaochang in 640, the Tang established the Protectorate General to Pacify the West at Jiaohe. In 648, after General Ashina She'er subjugated the Kingdom of Kucha, Emperor Taizong relocated the protectorate headquarters to Kucha and officially inaugurated the Four Garrisons of Anxi—comprising the pivotal Tarim Basin oasis hubs of Kucha, Khotan, Kashgar, and Karasahr. Over subsequent decades, the ascendance of the Tibetan Empire triggered twenty years of destructive warfare, leading to several temporary Tibetan occupations of the four hubs. In 692, Empress Wu Zetian dispatched General Wang Xiaojie on a major offensive that routed Tibetan forces, conclusively reclaiming the territory and institutionalizing a permanent garrison system of twenty-four thousand elite imperial troops, with Suyab replacing Karasahr. Serving as the imperial military bastion in Central Asia, the Four Garrisons neutralized the joint threats of nomadic Turks and Tibetans, sustained unprecedented trade across Eurasian caravan routes, and projected Tang administrative law and cultural prestige deep into Transoxiana, consolidating China's historic governance over the Western Regions.
EVENT TIMELINE
Ashina She'er conquers Kucha; the Protectorate moves to Kucha, establishing the Four Garrisons
Su Dingfang captures Shaboluo Khan, bringing Central Asian pastures under Tang administrative oversight
Emperor Gaozong elevates Anxi to a Grand Protectorate, making the Four Garrisons strategic hubs
Tibet seizes the Four Garrisons; Xue Rengui's relief army is routed at Dafeichuan, forcing an Anxi evacuation
Pei Xingjian pacifies Turkic rebels while escorting the Persian prince, building an imperial citadel at Suyab
Wang Xiaojie's expeditionary force destroys Tibetan armies, conclusively retaking all Four Garrisons
Empress Wu Zetian assigns 24,000 permanent imperial troops to the Four Garrisons, substituting Suyab for Karasahr
The court formalizes the Anxi Military Commission, inaugurating the golden age of Tang frontier security
Relationship graph
FULL ACCOUNT
Background
Continental Strategy and Security of the Silk Road
In the formative decades of the Tang Dynasty, the Eastern and Western Turkic Khaganates dominated the steppe frontiers, frequently raiding northern Chinese borders and severing access to the Hexi Corridor. Through decisive military campaigns culminating in the destruction of the Eastern Turks in 630, Emperor Taizong neutralized the northern menace. Subsequently, imperial grand strategy pivoted toward the vital geopolitical corridor of Central Asia. The Western Turkic Khaganate not only raided the frontier but also levied onerous transit tributes upon the autonomous oasis city-states of the Western Regions, paralyzing international commerce and diplomatic ties between China and Western Asia.
In 640, confronting the obstinacy of the Kingdom of Gaochang which allied with the Western Turks to obstruct imperial emissaries, Tang armies commanded by Hou Junji conquered Gaochang. Emperor Taizong established Xizhou (present-day Turpan) in the conquered realm and installed the Protectorate General to Pacify the West at Jiaohe, appointing Qiao Shiwang as its first Protector General. The creation of Xizhou provided an indispensable forward logistics platform, enabling imperial field forces to project power directly across the Taklamakan Desert and liberate Tarim Basin city-states from nomad vassalage.
Strategic Landscape of Tarim Oasis Kingdoms
Encircling the vast Tarim Basin lay renowned agricultural oasis kingdoms, notably Kucha, Khotan, Kashgar, and Karasahr. Endowed with sophisticated irrigation agriculture, vibrant textile crafts, and crucial geographical locations along the northern and southern branches of the Silk Road, these settlements served as mandatory emporia for continental caravans. However, lacking massed cavalry formations, they remained perpetually vulnerable to steppe extortion.
Imperial statesmen recognized that maintaining defensive forces exclusively at Xizhou was inadequate, as hundreds of miles of waterless wilderness separated Xizhou from the southwestern perimeter. If nomadic invaders attacked Khotan or Kashgar, relief expeditions from the east arrived far too late. To establish permanent security, the Tang needed to position garrison forces directly within the oasis kingdoms, creating an interlocking defensive matrix capable of mutual reinforcement and continuous operational surveillance.
Course of Events
Opening Campaigns and Initial Four-Garrison Framework
In late 647, after King Haripuspa of Kucha repudiated his vassal duties and aligned with the Western Turks, Emperor Taizong commissioned General Ashina She'er, a brilliant Turkic royal serving the Tang, as Commander-in-Chief of the Kunqiu Marching Administration, mobilizing over one hundred thousand Tang and Tiele cavalry. In 648, Ashina She'er marched across the desert, subduing Karasahr before executing a surprise strike against Kucha. In decisive combat at Sailü, Tang forces crushed the Kuchean field army, capturing King Haripuspa and Chief Minister Nali, thereby pacifying the northern rim of the Tarim Basin. Impressed by this decisive campaign, the kings of Khotan and Kashgar submitted tribute and offered voluntary submission.
Following the conquest, Emperor Taizong executed a major administrative redeployment, shifting the seat of the Protectorate General from Jiaohe westward to Kucha. Simultaneously, the court grouped Kucha, Khotan, Kashgar, and Karasahr into the official "Four Garrisons of Anxi." Imperial commanders were assigned to supervise garrison troops stationed in each city, supervising local indigenous administrations while integrating them into Tang protectorate networks, establishing the initial framework of imperial frontier defense.
Annihilation of the Western Turks and Expansion of Authority
In 657, Shaboluo Khan (Ashina Helu) of the Western Turks mounted an imperial rebellion, launching cross-border incursions. Emperor Gaozong dispatched Grand General Su Dingfang at the head of a joint Tang and Uyghur expeditionary army. Su Dingfang pursued the enemy across thousands of miles, culminating in the Battle of the Irtysh River and the rout of one hundred thousand nomad horsemen at the Suyab River. Ashina Helu was captured alive, terminating the Western Turkic Khaganate. The Tang established the Mengchi and Kunling Protectorates across the former nomadic pastures.
In the fifth month of 658, with the Western Turks eliminated, Emperor Gaozong elevated the command at Kucha into the Grand Protectorate General to Pacify the West, extending its administrative purview across Central Asian realms as far as Sogdiana and eastern Persia. The Four Garrisons formed the operational pivot of this trans-continental empire. Bastions were fortified, imperial military colonies (Tuntian) were cultivated, and postal courier relay stations linked the Pamir highlands directly with the capital Chang'an.
The Tibetan Challenge and Decades of Escalation
From the 660s onward, the Tibetan Empire emerged as a formidable rival on the Qinghai-Tibetan Plateau. Directed by Prime Minister Gar Tongtsen Yulsung and his brilliant son Gar Trinring Tsendro, Tibetan armies expanded relentlessly northward, overrunning the Tuyuhun before striking into the Tarim Basin. In the fourth month of 670, a massive Tibetan host coordinated with Turkic allies to storm the Four Garrisons, capturing Kucha and severing the trade routes. In response, the Tang court dispatched General Xue Rengui with over one hundred thousand troops to strike Tibet directly at Dafeichuan; however, Trinring trapped and crushed the Tang army with four hundred thousand warriors, forcing the temporary withdrawal of the Anxi protectorate back to Xizhou.
Over the ensuing twenty years, the Tarim Basin witnessed continuous warfare. Tang armies recovered the Four Garrisons in 675, only to lose them again in 678 following military setbacks in Qinghai. In 679, Minister Pei Xingjian executed a brilliant covert campaign under the pretext of escorting the exiled Persian Prince Peroz, pacifying local Turkic rebels, constructing a fortified Chinese citadel at Suyab, and temporarily restoring the four hubs. Nevertheless, renewed Tibetan offensives during the Chuigong era wrested control of the Tarim Basin once more, severing the Silk Road.
Wu Zetian's Counter-Offensive and Wang Xiaojie's Triumph
In 692, having assumed the imperial throne of the Wu Zhou Dynasty, Empress Wu Zetian resolved to terminate the Tibetan menace. She selected General Wang Xiaojie, an experienced military officer who had spent years as a captive in Tibet and possessed intimate knowledge of their military customs, appointing him Commander-in-Chief alongside Turkic loyalist Ashina Zhongjie. Leading veteran expeditionary forces from Shaanxi and Gansu, Wang Xiaojie launched a decisive counter-offensive.
Wang Xiaojie displayed remarkable tactical brilliance, crushing Tibetan armies commanded by Prince Lhan Tsenro in pitched engagements. Inflicting over ten thousand casualties, Tang forces recaptured Kucha, Khotan, Kashgar, and Suyab in rapid succession. Tibetan garrisons were routed and driven across the Kunlun Mountains, restoring the Four Garrisons to imperial control and shifting the strategic balance of power in Central Asia irrevocably in China's favor.
Permanent Garrisoning and the Golden Age of Anxi
Following the 692 reconquest, Empress Wu Zetian held grand court councils to devise lasting defense policies. Rejecting conservative advice to abandon distant frontier territories as economically unprofitable, Wu Zetian endorsed Wang Xiaojie's proposal to establish a permanent defensive garrison of twenty-four thousand elite imperial soldiers. Furthermore, the court designated the strategic fortress of Suyab (near modern Tokmok, Kyrgyzstan) to permanently replace Karasahr, forming the definitive Four Garrisons configuration of Kucha, Khotan, Kashgar, and Suyab.
This institutional reform initiated the golden age of Tang Central Asian power. In 711, Emperor Ruizong formalized the office of Military Commissioner of Anxi (Anxi Jiedushi), commanding twenty-four thousand troops and three thousand cavalry mounts. Under renowned frontier commanders such as Gao Xianzhi and Feng Changqing during the Kaiyuan and Tianbao eras, the Four Garrisons served as an impregnable base for expeditions across the Pamir Mountains into Gilgit and Fergana, maintaining peace and prosperity across the Silk Road.
Key Figures
Tang and Wu Zhou Leadership
- Li Shimin: Second emperor of Tang and strategic architect of the Western Regions policy, who commissioned the conquest of Gaochang and Kucha, founding the Four Garrisons.
- Wu Zetian: Empress Regnant of the Wu Zhou Dynasty, who resolutely rejected isolationist advice and appointed Wang Xiaojie to reconquer the Four Garrisons, establishing permanent standing troops.
- Ashina She'er: Prominent Turkic prince and Tang general, Commander of the Kunqiu Campaign, who subjugated Kucha and established the original Four Garrisons framework.
- Su Dingfang: Renowned Tang general whose brilliant campaign extinguished the Western Turkic Khaganate, elevating the Four Garrisons into a continental defense network.
- Wang Xiaojie: Grand General of Wu Zhou whose intimate understanding of Tibetan warfare secured the historic 692 victory, reclaiming all Four Garrisons.
- Pei Xingjian: Celebrated scholar-general under Emperor Gaozong, who pacified Western Turkic chieftains and constructed the forward stronghold at Suyab.
Adversary Commanders
- Gar Trinring Tsendro: Supreme Commander and Chief Minister of the Tibetan Empire, who defeated Xue Rengui at Dafeichuan and repeatedly threatened Tang dominance in Central Asia.
- Lhan Tsenro: Senior Tibetan prince and commander of occupational armies in the Tarim Basin, decisively defeated and expelled by Wang Xiaojie in 692.
- Ashina Helu: Shaboluo Khan of the Western Turks, whose open rebellion and raids sparked the Tang campaigns that culminated in his capture and the collapse of his khaganate.
Consequences and Historical Impact
Immediate Consequences
The institutionalization of the Four Garrisons concluded fifty years of military rivalry between the Tang, the Western Turks, and the Tibetan Empire. The permanent assignment of twenty-four thousand imperial troops anchored at Kucha, Khotan, Kashgar, and Suyab secured the complete pacification of the Tarim Basin. Tibetan invading forces were driven south beyond the Kunlun Mountains, while local oasis kingdoms resumed regular tributary and commercial relations under direct imperial supervision.
Historical Impact
The establishment of the Four Garrisons exerted an enduring influence on Chinese and Eurasian history:
First, it erected an unshakeable military fortress line safeguarding the northwestern frontiers for over a century. The self-sustaining garrison system provided the Tang Empire with rapid-response operational forces in the heart of Asia, permanently neutralizing the prospect of joint nomadic-Tibetan military offensives against the Hexi Corridor and the capital.
Second, it inaugurated the absolute golden age of the Eurasian Silk Road. Under the continuous protection of the Four Garrisons, caravan routes flourished without impediment. Sogdian merchants, Persian dignitaries, Indian monks, and Tang traders traversed the continental highways safely, driving an unprecedented era of economic vitality, urban development, and cosmopolitan cultural exchange.
Third, it cemented China's historic sovereignty and administrative governance over the Western Regions. The implementation of imperial registers, military colonies, transport networks, and civil codes across Xinjiang and Kyrgyzstan demonstrated that imperial rule extended far beyond transitory tributary recognition, providing a decisive historical foundation for modern Chinese territorial integrity in Central Asia.
Historical Assessment
- Old Book of Tang (Jiu Tang Shu): "Emperor Taizong pacified Gaochang and founded Anxi; during the Xianqing era, it moved to Kucha with the Four Garrisons. Though temporarily lost to raids, Wang Xiaojie smashed the Tibetans in the Changshou era to restore them. In the Tianbao era, imperial prestige terrified western barbarians; never was Chinese administration in the Western Regions more magnificent."
- New Book of Tang (Xin Tang Shu): "The Military Commissioner of Anxi pacified the Western Regions, commanding the four garrisons of Kucha, Khotan, Kashgar, and Suyab with 24,000 soldiers and 2,700 mounts. Imperial discipline was so awe-inspiring that barbarians dared not glance at the borders."
- Comprehensive Mirror to Aid in Government (Zizhi Tongjian): "Empress Wu commanded Wang Xiaojie to crush Tibet, recovering the Four Garrisons and severing Tibet's right arm. Never since the reign of Emperor Ming of Han had Chinese governance over the Western Regions shone with such dazzling luster."
Related Entries
- [[Tang Dynasty]]
- [[Wu Zhou]]
- [[Protectorate General to Pacify the West]]
- [[Wang Xiaojie]]
- [[Li Shimin]]
- [[Ashina She'er]]
- [[Su Dingfang]]
- [[Tibetan Empire]]
Bibliography
- Old Book of Tang, Volume 40, "Treatise 20: Geography 3, Anxi Protectorate"
- New Book of Tang, Volume 40, "Treatise 30: Geography 4, Grand Anxi Protectorate"
- Tongdian, Volume 174, "Prefectures 14: Anxi"
- Great Tang Records on the Western Regions, Volumes 1–12