Vietnam
In 1802 a new dynasty was founded in Vietnam (Dai Viet) by Nguyen Anh, a member of the royal family of Nguyen at Hue who had expelled the short-lived Tay Son regime and had unified the country, taking the dynastic name Gia Long. The Qing, under the Jiaqing emperor, recognized the new dynasty as a fait accompli, but a controversy arose as to a name for the new country. Gia Long demanded the name Nam Viet, but the Qing recommended Vietnam, reversing the two syllables. Finally an agreement was reached, and Gia Long became ruler of Vietnam.
Minh Mang, the second Nguyen emperor (reigned 1820–41), vigorously persecuted Christians in Vietnam. France resorted to arms after 1843 and, by the treaty of 1862 signed at Saigon (present-day Ho Chi Minh City), received three eastern provinces of Cochinchina, besides other privileges concerning trade and religion. In time, French attentions were focused on the Tonkin delta region into which the Red River flows, providing easy access to Yunnan. But the region was beset with many disorderly gangs escaped from China, including the Black Flags, who were under the command of Liu Yung-fu, a confederate of the Taiping. After a small French force had occupied some key points in Tongkin in 1873, a treaty was signed at Saigon in March 1874 that stipulated the sovereignty and independence of Vietnam. Though this clause implied that China could not intervene in Vietnamese affairs, the Zongli Yamen failed to file a strong protest. In 1880, however, the Qing claimed a right to protect Vietnam as its vassal state. Against the French occupation of Tongkin in 1882–83 and France’s proclamation of protectorate status for Vietnam (under the name of Annam) in the Treaty of Hue of August 1883, the Qing deployed its army in the northern frontier of Tongkin. Efforts for a peaceful settlement ended in failure, and both countries prepared for war.
In August 1884 French warships attacked Fuzhou and destroyed the Chinese fleet and dockyard there. Thereafter, however, the French navy and army were stalemated, and an armistice was reached in the spring of 1885. By the subsequent definitive treaty, the French protectorate of Vietnam was recognized, terminating the historical tributary relationship between China and Vietnam.
During the crisis the attitude of the Qing headquarters fluctuated between advocating militancy and seeking appeasement. Meanwhile, Li Hongzhang and Zeng Guoquan were reluctant to mobilize their respective northern and southern naval fleets in accordance with orders from Beijing.