FRONTIER GEOPOLITICS

The Four Garrisons of Anxi: Securing the Tarim Basin

How the Tang military machine projected power across the Taklamakan Desert, balancing oasis protectorates, garrison farms, and nomadic diplomacy.

Securing the Tarim Basin

Long-distance Silk Road commerce flourished under the Tang dynasty not by accident, but because imperial armies policed the desert corridors of Inner Asia. Following Emperor Taizong’s destruction of the Eastern Turkic Khaganate in 630 and the annexation of the oasis kingdom of Gaochang (Turpan) in 640, the court established the Protectorate General to Pacify the West (Anxi Duhufu, 安西都护府).

Initially seated at Jiaohe and later moved westward to Kucha, the protectorate governed a vast network of “loose-reign” prefectures (jimi fuzhou, 羁縻府州). Local oasis kings retained internal autonomy and hereditary titles in exchange for acknowledging Tang suzerainty, paying tribute, and keeping caravan routes open across the northern and southern rims of the Taklamakan Desert.

The Four Garrisons of Anxi

At the strategic core of Tang western defense stood the Four Garrisons of Anxi (Anxi Sizhen, 安西四镇):

  1. Kucha (Qiuci, 龟兹): Headquarters of the Protectorate General, commanding the northern Silk Road corridor along the foothills of the Tianshan Mountains.
  2. Khotan (Yutian, 于阗): Anchor of the southern oasis route along the Kunlun Mountains, famous for its nephrite jade trade and Buddhist scholarship.
  3. Kashgar (Shule, 疏勒): The westernmost sentinel at the foot of the Pamir Mountains, guarding the crossroads leading toward Fergana, Sogdiana, and India.
  4. Karashahr (Yanqi, 焉耆) — and for a period, Suyab (Suiye, 碎叶): Controlling the eastern approaches to the Tarim Basin and monitoring steppe movements across the Ili valley.

Contested Empires: Tang, Tibet, and the Abbasids

Control over the Four Garrisons was fiercely contested for over a century. In 670, the rising Tibetan Empire (Tubo) overran the Tarim Basin, cutting Tang overland access to Central Asia for two decades until Empress Wu Zetian’s general Wang Xiaojie recaptured all four garrisons in 692.

During the Kaiyuan and Tianbao eras under Emperor Xuanzong, Tang military reach extended across the Pamirs into Gilgit and the Fergana Valley. That expansion collided with the eastward advance of the Abbasid Caliphate at the Battle of Talas in 751. Though the Tang army led by Gao Xianzhi suffered defeat, the frontier remained stable until the outbreak of the An Lushan Rebellion in 755 forced the court to recall its elite western troops to defend Chang’an—leaving the isolated Anxi garrisons to hold out heroically for decades before finally succumbing to Tibetan conquest in the late eighth century.

The Tuntian Garrison-Farm System

Maintaining thirty thousand soldiers thousands of miles from the Yellow River heartland posed an immense logistical challenge. Transporting grain by pack animal across the Gobi Desert cost several times the value of the food delivered.

To solve this, Tang commanders institutionalized Tuntian (屯田, military agricultural colonies) around every major oasis fortress. Soldiers rotated between patrol duty and irrigating wheat and barley fields fed by glacial meltwater from the Tianshan and Kunlun ranges. Archaeological records recovered from Turpan and Kucha reveal meticulous granary accounts, horse-relay station logs, and frontier pass permits (guosuo, 过所) that regulated every merchant and monk crossing Tang checkpoints.

References & Historical Sources

  • Jiu Tang Shu (旧唐书), juan 40 (Geography) & juan 198 (Account of the Western Regions).
  • Xin Tang Shu (新唐书), juan 40 & juan 221.
  • Christopher I. Beckwith, The Tibetan Empire in Central Asia (Princeton University Press, 1987).
  • Jonathan Karam Skaff, Sui-Tang China and Its Turko-Mongol Neighbors (Oxford University Press, 2012).