Gia Long ( (North), (South); 8 February 1762 – 3 February 1820), born Nguyễn Phúc Ánh (阮福暎) or Nguyễn Ánh, was the founding emperor of the Nguyễn dynasty, the last dynasty of Vietnam. His dynasty would rule the unified territories that constitute modern-day Vietnam until 1945. A nephew of the last Nguyễn lord who ruled over south Vietnam, Nguyễn Ánh was forced into hiding in 1777 as a fifteen-year-old when his family was slain in the Tây Sơn revolt. After several changes of fortune in which his loyalists regained and again lost Saigon, he befriended the French Catholic Bishop Pierre Pigneau de Behaine. Pigneau championed Nguyễn Ánh's cause to regain the throne to the French government and managed to recruit volunteers, however that soon fell through. From 1789, Nguyễn Ánh was once again in the ascendancy and began his northward march to defeat the Tây Sơn, reaching the border with the Qing dynasty by 1802, which had previously been under the control of the Trịnh lords. Following their defeat, he succeeded in reuniting Vietnam after centuries of internecine feudal warfare, with a greater landmass than ever before, stretching from the Qing's borders down to the Gulf of Siam. Gia Long's rule was noted for its Confucian orthodoxy. He overcame the Tây Sơn rebellion and reinstated the classical Confucian education and civil service system. He moved the capital from Hanoi south to Huế as the country's populace had also shifted south over the preceding centuries, and built up several fortresses and a palace in his new capital. Using French expertise, he modernized Vietnam's defensive capabilities. In deference to the assistance of his French friends, he tolerated the activities of Roman Catholic missionaries, something that became increasingly restricted under his successors. Under his rule, Vietnam strengthened its military dominance in Indochina, expelling Siamese forces from Cambodia and turning it into a vassal state. Early years Born in Phú Xuân (modern-day Huế, central Vietnam) on 8 February 1762, he also had two other names in his childhood: Nguyễn Phúc Chủng (阮福種) and Nguyễn Phúc Noãn (阮福暖). Nguyễn Ánh was the third son of Nguyễn Phúc Luân and Nguyễn Thị Hoàn. Luan was the second son of Lord Nguyễn Phúc Khoát of southern Vietnam; the first son had already predeceased the incumbent Lord. There are differing accounts on which son was the designated successor. According to one theory, Luân was the designated heir, but