Tĩnh Hải quân
Tĩnh Hải quân or the Jinghai Military Command (Chinese: 靜海軍, pinyin: Jìnghǎi Jūn) (literally "Peaceful Sea Army"), also known as Annam (安南), was an administrative division of the Tang dynasty of China administered by Chinese governors, which then later became a quasi-independent regime ruled by successive local Vietnamese warlords and monarchs. It was centered around what is now northern Vietnam from 866 to 967 during the late Tang period and lasted until the late Five Dynasties and Ten Kingdoms period when Đinh Bộ Lĩnh established the Đinh dynasty. History. Chinese period. Jinghai Circuit (Tĩnh Hải quân ) was created in 866 by Gao Pian as a Tang "fanzhen" ("buffer town") in the former Annan Duhufu (Protectorate General to Pacify the South) after retaking it from Nanzhao, which had invaded and captured the area in 863. The area of the Command was sometimes referred to as "Circuit" (道 dao). In 875, the Huang Chao rebellion broke out in northern China. In 879, the rebels sacked Guangzhou, headed north, bypassing Guangxi and northern Vietnam. A campaign against local aboriginals in Jinghai was conducted from 874-879. In 880, the army in Đại La mutinied, forcing the commander Zeng Gun  to flee north, ending de facto Chinese control. Tang troops returned north in small groups of their own initiative. From 880 to 905, named holders of the post never actually governed Jinghai. In 904, Zhu Wen's brother Quanyu tried to enter the region but was immediately dismissed the next year for being "stupid and without ability." Autonomous period. In 905, the native chief Khúc Thừa Dụ of the Khúc clan came to power and proclaimed himself "jiedushi". In 907, his son Khúc Hạo (Chu Hao) succeeded as governor and was recognized by the Later Liang dynasty in northern China . In southern China, the powerful Liu Yin ruled over Guangzhou and was a close ally of Zhu Quanzhong. In 908 Khúc Hạo sent his son Khúc Thừa Mỹ to Guangzhou to gather information on the Liu family. When Liu Yin died in 911, Thừa Mỹ sent gifts to the Later Liang court by a naval envoy from the Min Kingdom. In the fifth month of the year, Liu Yin’s brother and successor was named military governor at Guangzhou only. In the last month of the year, an imperial envoy arrived at Đại La to confirm Thừa Mỹ as military  governor there. The Vietnamese Khúc family maintained a relationship with the Later Liang court through the Min state in Fujian. Wang Shenzhi called Thừa Mỹ's envoys "southern barbarian merchants". In 917, Liu Yan proclaimed himself emperor of Southern Han. In 923, the Later Liang dynasty collapsed, so the Khúc family could no longer look north for legal and moral support. The Southern Han at Guangzhou controlled all of the Xi River basin; they were eager to add the Vietnamese territories to their realm and to reassemble the ancient inheritance of Zhao Tuo’s kingdom of Nanyue. In October 930 , Liu Yan sent an army to occupy Đại La and met no resistance. Khúc Thừa Mỹ was captured and taken to Guangzhou, where he was allowed to live out his days quietly. In 931, a former vassal of the Khúc family, Dương Đình Nghệ from Aizhou (modern-day Thanh Hoá and Nghệ An), raised a 3,000-men army of retainers whom he called his adopted sons. Dương Đình Nghệ attacked the Southern Han army. Southern Han's general, Cheng Bao failed to retake Tĩnh Hải from Dương Đình Nghệ and therefore he was decapitated. Dương Đình Nghệ ruled Tĩnh Hải  for 6 years. In 937, He was assassinated by Kiều Công Tiễn, a military subject who had given his allegiance to the Southern Han state and seized power. Ngô Quyền, a former general and son-in-law of Dương Đình Nghệ, marched north from Ai to avenge the death of his patron. The pro-Southern Han Kiều Công Tiễn called Liu Yan for help. Liu Yan placed his own son, Liu Hongcao, in command of the expedition, granting him the titles "Jinghai jiedushi" and "King of Jiao", sailed to the coast of Annam and headed inland up the Bạch Đằng  River, a northern arm of the Red River delta, to confront Ngô Quyền. Liu Yan himself set out from Guangdong, following his son’s fleet with additional forces. In late 938, Ngô Quyền defeated the Southern Han fleet on the river by using barriers of sharpened stakes. When hearing the news that Liu Hongcao was killed, Liu Yan cried bitterly and withdrew his own fleet and returned to Guangzhou. Independence. In February 939, Ngô Quyền abolished the title of military governor and proclaimed himself king, with the ancient town of Cổ Loa as his royal capital. His government was described  as sinicized. He died in 944 and was succeeded by his brother-in-law Dương Tam Kha. Civil war broke out and Dương Tam Kha was removed from power by Ngô Quyền's sons, Ngô Xương Ngập and Ngô Xương Văn, in 950. The two kings Ngập and Văn ruled together from 950–951. In 954, Ngô Xương Văn aborted an attempt to revert to the formalities of Tang administration. In the same year, he also sent envoys to Guangzhou bearing tribute and requesting credentials from Southern Han. Civil war. From 951, Duke Đinh Bộ Lĩnh of Hoa Lư began challenging  royal authority. As the two kings prepared to march against Hoa Lư, Bộ Lĩnh sent his son Đinh Liễn as a hostage of good faith. The Ngô brothers responded by denouncing Bộ Lĩnh for not coming in person, securing Liễn, and proceeding to attack Hoa Lư. After Liễn escaped back to Hoa Lư, Bộ Lĩnh moved to make an alliance with Trần Lãm, a merchant and warlord of Cantonese origin. In 965, king Xương Văn campaigned against a pair of villages on the border of Phong. While observing the battle from a boat in the river, he was shot and  killed by a crossbowman lying in ambush. After Xương Văn's death, warlords across northern Vietnam enlisted their own armies and took control the land. The kingdom dissolved into civil war, known as the Anarchy of the 12 Warlords. In the same year, Bộ Lĩnh subdued and mobilized "Ô man" tribes in the west, then attacked warlord Ngô Nhật Khánh in Sơn Tây with 30,000 troops. Having gained the submission of Ngô Nhật Khánh, the grandson of Ngô Quyền, Bộ Lĩnh's force marched northwest in 966 and defeated warlord Kiều Công Hãn. Two years later, he defeated all the  warlords, proclaimed himself emperor of Đại Cồ Việt or Đại Việt and moved the Vietnamese capital to Hoa Lư. Culture and economy. After establishing a monarchy, Ngô Quyền strengthened old rituals, and also provided feathered accessories, yellow banners, brass gongs, and deerskin drums for all the ancient dances with sword and battle axe, reminiscent of scenes depicted on Đông Sơn drums. Buddhism and Taoism were the predominantly religion of Tĩnh Hải. Popular Taoism was very close to the traditional animist beliefs of the Vietnamese. There are sixteen Buddhist ratanadhvaja stone columns containing Uṣṇīṣa Vijaya Dhāraṇī texts were that erected by  Đinh Liễn during this period. Prominent Buddhist monks such as Ngô Chân Lưu, Trương Ma Ni, had great influence. It is suggested that the vernacular Vietnamese script "chữ nôm" appeared in the late first millennium. Vietnamese export products at the time such as bananas, areca nuts, shark skin, python bile, and kingfishers feathers, were well known. Around 870, Jinghai's capital Đại La (Hanoi) was known as "Luqin" (derived from Long Biên, southeast Hanoi) by Persian scholar Ibn Khordadbeh's "Kitāb al-Masālik wa’l- Mamālik" (, Book of Roads and Kingdoms) and described it having a Muslim settlement. Merchants from the  sea stopped at "Sanf" (Champa), then might coast round the Gulf of Tonkin to Hanoi/"Luqin", before they made for their final destination, Guangzhou, which was called "Khanfu".