Lake basin and a stone stele on the Nanzhao and Tang Relations cover

Nanzhao and Tang Relations: Events, Sources and Historical Consequences

Lake basin and a stone stele on the Nanzhao and Tang Relations cover
Explore how Nanzhao and Tang China moved between recognition, war and alliance, from the Erhai region to the battles over Sichuan and the Red River delta.

Table of Contents

Quick Answer: How Did Nanzhao and Tang Relations Change?

Nanzhao (南诏, Nánzhào) was a kingdom centered near Lake Erhai in what is now Yunnan. It received recognition from the Tang, fought Tang armies and aligned with Tibet, then renewed its Tang alliance in 794. The two courts cooperated against Tibet for a time. Wars with the Tang returned in the ninth century. [1][2][3][6][7][8]

  • 738: Tang recognition strengthened the ruler who was consolidating power around Erhai.
  • Mid-eighth century: War with the Tang pushed Nanzhao toward Tibet.
  • 794: A new agreement restored formal ties with the Tang. [1][3][5]

Nanzhao conducted its own diplomacy and fought for interests that extended beyond the Tang frontier. [1][2][6]

Nanzhao and Tang timeline from royal recognition to conflicts in Sichuan and Annan
Nanzhao and the Tang renewed their alliance in 794 and fought again in the ninth century.

The Tang court could grant titles to Nanzhao rulers, but it could not make them stay allied. Nanzhao changed its allegiance when the cost of a relationship rose and another court offered terms.

Why Tang Recognized a Ruler Near Lake Erhai

Several rulers held power in the Erhai region before Nanzhao became dominant there. In the 730s, Piluoge (皮逻阁, Píluógé) secured Tang approval for a campaign against regional rivals. In 738 the Tang court granted him honors that recognized his growing authority, including the title King of Yunnan. [1][3]

Tang recognition helped Piluoge in a region where the Tibetan empire also sought allies. Nanzhao’s rulers could send gifts, accept titles and negotiate with more than one court. They also governed communities and pursued trade and expansion south and west of Erhai. Nanzhao maintained routes and established walled centers beyond the region where Tang recognition had helped Piluoge. [1][2]

How the Alliance Broke Down

Relations deteriorated under Piluoge’s successor Geluofeng (阁罗凤, Géluófèng). The New Book of Tang describes a dispute with the Tang official Zhang Qiantuo, whom Geluofeng’s forces killed. A Tang army led by Xianyu Zhongtong was defeated in 751. Another expedition, led by Li Mi, failed in 754. Nanzhao turned to Tibet during the fighting and accepted a seal and titles from the Tibetan court. [1][3][4]

The Dehua Stele (德化碑, Déhuà Bēi), erected in 766, sets out the Nanzhao court’s case. It presents the break as a response to mistreatment. It also portrays Geluofeng as honoring earlier ties by arranging burials for fallen Tang officers. The later New Book of Tang also reports grievances, but tells the story within an imperial account of relations with a frontier ruler. The stele thus gives readers a political account commissioned by Nanzhao itself, alongside the story told by later imperial historians. [1][3][4]

Why Nanzhao and Tang Made a New Agreement in 794

Nanzhao’s relationship with Tibet grew strained. After a joint campaign against Tang Sichuan in 779 failed, Tibet demanded more revenue and labor, and Nanzhao’s court had reasons to reconsider the alliance. Tang governor Wei Gao (韦皋, Wéi Gāo) pursued negotiations with the Nanzhao ruler Yimouxun (异牟寻, Yìmóuxún). [1][3][7]

In 794 Nanzhao broke with Tibet and renewed its alliance with the Tang. A covenant was concluded at Mount Diancang near Dali. The Comprehensive Mirror records that Nanzhao sent the Tang court a seal previously granted by Tibet and that a Tang envoy brought new recognition. The Tang envoy Yuan Zi brought a new seal. The chronicle also describes Yimouxun displaying gifts received in an earlier reign, a gesture that tied the new agreement to a longer relationship. Nanzhao continued to make decisions about territory, military campaigns and government. [1][2][3][5]

How Ninth-Century Wars Tested the Relationship

The renewed alliance supported cooperation against Tibet for several decades. It gave way to a more uneven relationship. During the winter of 829–830, Nanzhao troops invaded the Sichuan plain, reached Chengdu and carried off residents. The Tang poet Yong Tao later wrote about the despair of people taken from Chengdu. [6][7]

The Red River delta became another theater of war. In 863 Nanzhao forces and local allies seized the Tang protectorate’s seat in Annan (安南, Ānnán), in present-day northern Vietnam. Tang commander Gao Pian counterattacked and recovered the seat, near present-day Hanoi, in 866. The war disrupted settlements and trade in a region connected to maritime routes across the Gulf of Tonkin. Diplomatic contact continued alongside war. In 866, a Nanzhao delegation visiting Chengdu disputed the ceremony expected by the Tang governor. The delegates were detained and later released. The episode shows that the rank each court expected its envoys to receive was still contested. [5][6][8]

Nanzhao’s campaigns and its system of walled centers and alliances also reached into parts of the upper Mekong and Ayeyarwady regions. These southern connections explain why the kingdom’s history also belongs to Southeast Asia, beyond its dealings with the Tang and Tibet. [2][6][8]

FAQs About Nanzhao and Tang Relations

Where was Nanzhao based?

Nanzhao’s core was near Lake Erhai and present-day Dali in western Yunnan. Its influence extended beyond that basin through conquest, trade and political ties. [1][2]

Was Nanzhao a province of Tang China?

Nanzhao was a kingdom with its own rulers and administration. Tang recognition and titles formalized a relationship with the imperial court while leaving Nanzhao’s rulers in charge of their territory. [1][2][3]

Did the alliance of 794 end the fighting between Nanzhao and Tang?

The agreement opened a period of Tang–Nanzhao cooperation against Tibet. Nanzhao later invaded the Sichuan plain, and the two powers fought over the Red River delta in the ninth century. [6][7][8]

Sources

[1] Megan Bryson. Tsenpo Chung, Yunnan Wang, Mahārāja: Royal Titles in Narratives of Nanzhao Kingship

[2] Christian Daniels. Nanzhao as a Southeast Asian Kingdom, c. 738–902

[3] Ouyang Xiu, Song Qi and other compilers. New Book of Tang, Volume 222A: Nanzhao

[4] Nanzhao court inscription. Dehua Stele of Nanzhao

[5] Sima Guang and collaborators, text hosted by Nagoya University. Comprehensive Mirror for Aid in Government: Selected Entries on Yunnan and Southeast Asia

[6] Zhenping Wang. Rearing a Tiger in the Backyard: China and the Nanzhao Kingdom

[7] Franciscus Verellen. Introduction to The Fall of the Tang

[8] Franciscus Verellen. The Southern Man, in The Fall of the Tang