(Hanoi) to symbolise the unification of northern and southern Vietnam, despite no contemporary evidence supporting this. He then quickly overran the north, with Hanoi captured on 22 July 1802. After a quarter-century of continuous fighting, Gia Long had unified these formerly fractious territories, ultimately leading what is now modern Vietnam and elevated his family to a position never previously occupied by any Vietnamese royalty. Vietnam had never before occupied a larger landmass. Gia Long became the first Vietnamese ruler to reign over territory stretching from China in the north, all the way to the Gulf of Siam and the Cà Mau peninsula in the south. Gia Long's then petitioned the Qing dynasty of China for official recognition, which was promptly granted. The French failure to honor the treaty signed by Pigneau meant Vietnam was not bound to cede the territory and trading rights that they had promised. Due to a Tây Sơn massacre of ethnic Chinese, the Nguyễn were subsequently supported by most ethnic Chinese against the Tây Sơn. The Tây Sơn's downfall and defeat at the hands of Nguyễn Phúc Ánh was therefore due, at least in part, to the ethnic Chinese support given the Nguyễn. Rule Gia Long's rule was noted for its strict Confucian orthodoxy. Upon toppling the Tây Sơn, he repealed their reforms and reimposed classical Confucian education and civil service systems. He moved the capital from Hanoi in the north to Huế in central Vietnam to reflect the southward migration of the population over the preceding centuries. The Emperor built new fortresses and a palace in his new capital. Using French expertise, Gia Long modernized Vietnam's defensive capabilities and, in recognition of the assistance of his French friends, he permitted the activities of Catholic missionaries, something, however, which was less tolerated by his successors. Under Gia Long's rule, Vietnam strengthened its military dominance in Indochina, expelling Siam from Cambodia and turning it into a vassal state. Despite this, he was relatively isolationist in outlook towards European powers. Renaming Vietnam Gia Long decided to join the Imperial Chinese Tributary System. He sent an embassy to Qing China and requested to change his country's name to Nam Việt (南越). Gia Long explained that the word Nam Việt derived from An Nam (安南) and Việt Thường (越裳), two toponyms mentioned in ancient Chinese records were located in northern and southern Vietnam respectively, to symbolize the unification of the