Guiyi Circuit
Guiyi Circuit (归义军) was the name of two distinct military-prefectural institutions of the Tang and Five Dynasties era: a short-lived circuit created at the frontier town of Tiande (天德) for the surrendered Uyghur chief Wa Meisi (嗢没斯), recorded in the New Book of Tang, and the Dunhuang circuit of Shazhou (沙州), which governed part of the Hexi corridor for nearly two centuries.1 • 2 The Dunhuang circuit outlived the Tang dynasty itself.3
| Key facts | |
|---|---|
| Native name | 归义军 ("Circuit of Returning to Allegiance") |
| Two institutions | A circuit at Tiande for Wa Meisi, later abolished; and the Dunhuang circuit of Shazhou1 |
| Record confirmations | Cao Yijin (曹议金) appointed 归义军节度使 by Tang Zhuangzong; Cao Yuanzhong (曹元忠) reappointed by Zhou Shizong3 |
The two circuits of one name
The New Book of Tang passage that names the 归义军 concerns the collapse of the Uyghur khaganate. When Wa Meisi, having eliminated the rival chief Chi Xin (赤心) in concert with the garrison commander of Tiande, came over to the Tang with three tribes and two thousand cavalry, the court made Tiande itself into the 归义军 and appointed Wa Meisi its circuit commissioner (归义军使), with the rank of 右金吾卫大将军 and the title 怀化郡王; the Uyghur officer Ai Xiewu (爱邪勿) was made 归义军副使.1
Founding and history of the Dunhuang circuit
One study argues that the presentation of eleven prefectures as the circuit's jurisdiction was reconstructed by historians from the government's intended jurisdiction, and that the circuit actually controlled only five prefectures, Sha (沙), Gua (瓜), Gan (甘), Su (肃), and Yi (伊).2
The standard histories confirm the circuit's continuation into the Five Dynasties. When Cao Yijin sent envoys to the Later Tang court accompanying Uyghur missions, Tang Zhuangzong appointed him 归义军节度使 and 瓜沙等州观察处置等使.3 Under Zhou Shizong, the court again appointed Cao Yuanzhong 归义军节度使 and Cao Yuangong (曹元恭) 瓜州团练使.3
Structure, functions, and personnel
The circuit's head held the title 归义军节度使; under the Cao it was paired with the 瓜沙等州观察处置等使.3 Under the Cao, the regime integrated local bureaucratic elites and maintained envoys to the Central Plains dynasties and to the Uyghur states of Ganzhou (甘州) and Xizhou (西州).5 • 6
Military style
For the Tiande circuit, the record shows a force built around a surrendered tribal core stiffened by Tang units. According to the New Book of Tang (juán 217), Wa Meisi, serving as 河西党项都将 and 西南面招讨使, repeatedly went deep into Uyghur territory to induce his former subjects to surrender; the commissioner Liu Mian (刘沔) assigned him Shatuo troops and gave Ai Xiewu (renamed 弘顺) five hundred cavalry from the Hezhong (河中) army. Wa Meisi, entrenched at 保大栅 with Hezhong and Chenxu (陈许) troops, defeated the Uyghurs in battle, and the deputy's forces beat them again the next year. The decisive operation was a night march by the deputy commander Shi Xiong (石雄) with picked cavalry and mixed tribal auxiliaries from Yunzhou (云州) past Mayi (马邑) to 安众塞, then a night sapping of the walls at Zhenwu (振武) that routed the khagan Wu Jie (乌介), whose flight ended at 杀胡山.1
For the Dunhuang circuit, the record of tactics is thinner. Under the Cao, Cao Yijin (曹议金) married into the Ganzhou Uyghur royal house and personally led a campaign against Ganzhou.6
Political influence
The Cao regime worked by diplomacy rather than confrontation with the court. Later Tang Zhuangzong formally recognized Cao Yijin, appointing him 归义军节度使 and 瓜沙等州观察处置等使, with a jurisdiction of Sha and Gua.3 In the donor inscriptions of Mogao cave 98 he styled himself commissioner of "the prefectures of Hexi (河西), Longyou (陇右), Yi, Xi (西), Ting (庭), Loulan (楼兰), Jinman (金满) and others," a claimed territory far larger than what he held.2 What outlasted the institution was its role as the framework of local government in Dunhuang for nearly two centuries, shaping the region's politics from the Tang into the Song era.2
Assessment, disputes, and legacy
Modern scholarship on the circuit rests heavily on Dunhuang documents, and several of its findings revise the traditional narrative. On the recovery of Suzhou (肃州) and Ganzhou, the conventional dating to 大中三年 has been challenged according to a 2023 study in 《唐史论丛》, which argues the recoveries fall between July of 大中十年 and 大中十二年; the same study holds that the Tibetan chief Shang Bibi (尚婢婢)'s relations with the circuit were hostile rather than allied.7
The Cao family's origin is the sharpest dispute. A study by Rong Xinjiang (荣新江) and related work concludes that Cao Yijin's family were descendants of Central Asian Sogdian Caos who, after taking the commissionership in the early Five Dynasties, claimed descent from the Qiaojun (谯郡) Cao to raise their standing, making the Cao regime essentially a Sogdian-led state.4 • 8 According to a Renmin University study on geographic changes from the pre-Qin period to the Ming dynasty, traditional inscriptions in which the Cao style themselves 谯郡公 remain in circulation alongside this thesis.2 Zhang Chengfeng (张承奉)'s late rule is now divided by historians into three phases, restoration and personal rule, the Golden Mountain Kingdom, and the Dunhuang Kingdom, and Cao Yijin's marriage alliances, rapprochement with the Central Plains dynasties, and integration of local elites are credited with freeing the circuit from Ganzhou Uyghur dominance and restoring stability to Gua and Sha.5
References
- 《新唐书》卷二百一十七下 (passages naming 归义军), Wikisource transcription. https://zh.wikisource.org/wiki/新唐書/卷217下
- 论归义军辖区变迁, 中国人民大学清史研究所. http://iqh.ruc.edu.cn/old/zglsdlyj/lsdl_lzjj/xqzmddlyj/83ad01af012a4f399827a12c53343d7d.htm
- 《旧五代史》卷一百三十八 (sentences naming 归义军), Wikisource transcription. https://zh.wikisource.org/wiki/舊五代史/卷138
- 敦煌归义军曹氏统治者为粟特后裔说 (期刊论文). http://wenxueyuan.ruc.edu.cn/UploadFile/20170407/20170407085805406017.pdf
- A Chronological Review of the Transition of the Gui-Yi Circuit Administration. https://www.davidpublisher.com/index.php/Home/Article/index?id=52439.html
- 归义军史研究:唐宋时代敦煌历史考索 (荣新江), 目录页. https://www.dushu.com/book/14168502/
- 张议潮收复肃、甘二州系年再议, 《唐史论丛》2023年第1期. http://dianda.cqvip.com/Qikan/Article/Detail?id=00002F8G51907JP0MJDO8JP1MFR
- 敦煌曹氏族属与曹氏归义军政权 (期刊论文摘要). https://history.alljournals.cn/view_abstract.aspx?pcid=B105980C46742988AA264212B4BA36DE578B761D73696550&aid=AFF10CDE23B1F8FA28DE5ED50BD6723D
Topic: Encyclopedia › Society and history › History and archaeology › Asian history › China › Late Tang (820 to 907) › Late Tang institutions, works, and religion
Initially written Sep 23, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Sep 30, 2026
Your notes
© 2026 EdgeChat AI, a subsidiary of Biostate AI. Free to use with credit under the Edgepedia Community License. Developers: read Edgepedia by API or MCP. Embed a reference card.