controlled areas seen in light yellow on the map, then called
Đại Việt, bordered by
Champa and the
Khmer Empire Background For roughly a millennium a series of
Chinese dynasties had controlled northern Vietnam, until the
Vietnamese regained independence in 905 when a local noble
Khúc Thừa Dụ became
jiedushi (governor) of
Tĩnh Hải circuit, amid the collapse of the
Tang Empire. In 938, Vietnamese general
Ngô Quyền defeated the
Southern Han state on
Bạch Đằng River, firmly ending Chinese domination over Vietnam. In 939, he established the
Ngô dynasty (939–965) and secured Vietnamese independence. In 968, Duke
Đinh Bộ Lĩnh reunited northern Vietnam under the new
Đinh dynasty and renamed his kingdom to
Đại Cồ Việt (大瞿越). Đại Cồ Việt's independence was recognized by
Emperor Taizong of Song in 973 with a nominally tributary relationship being put in place, regarded as
Annam. However, when Vietnam was politically unstable in 980, the Chinese Emperor sent a 40,000 man-strong force led by
Hou Renbao to invade Vietnam with the stated aim of "recovering
Giao Chỉ" in early 981, but
were defeated by general
Lê Hoàn (941–1005), The relationship of Song China to the Vietnamese remained peaceful. The new Vietnamese ruler,
Lý Công Uẩn, replaced the house of Lê in November 1009, and Song China continued recognizing the Lý monarchs like their predecessors. Vietnamese tributary envoys sent to China horses, jades, and received back books, sutras, clothes and gold belts. Subsequently, the
Zhuang rebel
Nong Zhigao (Nùng Trí Cao) (1025–1053) attempted to establish his own frontier kingdom in 1042, 1048, and 1052, creating a disturbance on Song's southern border that prompted an invasion against Nong Zhigao/Nùng Trí Cao's forces in the 1050s. This invasion resulted in the Song conquest of border regions inhabited by
Tai peoples and a border confrontation with the
Lý dynasty (1010–1225) that lasted from 1075 to 1077. The Song court's interest in maximizing the economic benefits of these frontier zones came into conflict with the Lý dynasty, whose goal was to consolidate their peripheral fiefdoms.
Border hostilities The Vietnamese court had not intervened when the Song general
Di Qing (1008–1061) crushed the border rebellion of Nùng Trí Cao in 1053. During the two decades of relative regional peace that followed, the Vietnamese observed the threat of Song expansion, as more
Han Chinese settlers moved into areas which the Vietnamese relied upon for the extraction of natural resources. Initially, a division of Di Qing's soldiers (originally from
Shandong) had settled the region, followed by a wave of Chinese settlers from north of the
Yangzi River. The Guangnan West Circuit Fiscal Commissioner, Wang Han (fl. 1043–1063), feared that Nùng Trí Cao's kinsmen Nùng Tông Đán intended to plunder the region after he crossed the Song border in 1057. The Song government rejected his proposal and made the Nùng communities (along with other ethnic groups) official dependents of Song imperial authority, This bolstered his kingdom's strength in a time of conflict with
Champa (located in southern Vietnam).
Tribute and intrigue ''; the
Lý dynasty court sent nine elephants as tribute to the Song capital of
Kaifeng on February 8, 1063. The Vietnamese court discovered the Song's secret attempt to ally with Champa; while Dai Viet sent a delegation to
Yongzhou to thank Song for putting down local rebellions and to negotiate terms of peace, they instructed their agents to gather intelligence on the alleged Champa alliance and the strength of Song's military presence in the Guangnan Western Circuit. Although a plea from a Guangnan official urged Kaifeng to take action, Yingzong left defenses up to local Guangnan forces and labeled Thàn Thiệu Thái as "reckless and mad" in an effort to disassociate him from the Lý court. When the now "mentally weak and distracted ruler" Yingzong—as Anderson describes him—received the report, he took no other action but to reassign Nùng Tông Đán with new honorific titles. Yingzong died on 8 January 1067, and was replaced by Emperor Shenzong (r. 1067–1085), who like his father, heaped rewards on Vietnamese leaders but was more observant of the Vietnamese delegations.
Frontier policy and war In his New Policies sponsored by Shenzong, Wang Anshi enhanced central authority over Song's frontier administrations, increased militia activity, increased troop levels and war horses sent to the frontiers (including the border areas with Đại Việt), and actively sought loyal supporters in border regions who could heighten the pace of extraction of local resources for the state's disposal. Tensions between Song and Lý were critical, and in these conditions any sign of hostility had potential to ignite a war. in Vietnam, where the Đại Việt's capital of Thăng Long was located, and which Song forces nearly besieged before both sides agreed to withdraw The Quảng Nguyên chieftain Lưu Ký launched an unexpected attack against Yongzhou in 1075, which was repelled by the Song's Vietnamese officer Nùng Trí Hội in charge of Guihua. Shenzong then sought to cement an alliance with the "Five Clans" of northern Guangnan by issuing an edict which would standardize their once irregular tribute missions to visit Kaifeng now every five years. Lý Thường Kiệt calmed the apprehensions of the local Chinese populace, claiming that he was simply apprehending a rebel who took refuge in China and that the local Song authorities had refused to cooperate in detaining him. In the early spring of 1076, Thường Kiệt and Nùng Tông Đản defeated the Song militia of Yongzhou, The Vietnamese counterattacked and pushed Song forces back across the river while their coastal defenses distracted the Song navy. Lý Thường Kiệt also launched an offensive, but lost two Vietnamese princes in the fighting at Kháo Túc River. As a result, Thường Kiệt made peace overtures to the Song; the Song commander Guo Kui agreed to withdraw his troops, but kept five disputed regions of Quảng Nguyên (renamed Shun'anzhou or Thuận Châu), Tư Lang Châu, Môn Châu, Tô Mậu Châu, and Quảng Lăng.
After 1082 Relations between Vietnam and Song China afterwards were generally at peace until the Mongol conquest. In 1125, a Vietnamese envoy came to the Song capital
Kaifeng bearing gifts. Shortly after, the
Jurchen Jin dynasty invaded northern China and laid siege to Kaifeng, now known as the
Jingkang incident. A Vietnamese prince in the Vietnamese entourage,
Lý Dương Côn (), survived the Jin siege and sought refugee in
Goryeo (Korea). 19 years later, when the Song dynasty reorganized itself south of the Yangtze as the
Southern Song dynasty, the Vietnamese king
Lý Anh Tông sent a new tributary envoy to Song China, giving the Chinese court gifts of gold, silver, elephant teeth, and incense. There would be no tributary missions from Vietnam to China until the
Trần dynasty deposed the Lý in 1225. In 1229, Trần ruler
Trần Thái Tông sent a diplomatic mission to Song China, and was recognized as king of Annam. == Partisans and factions, reformers and conservatives ==