a high-ranking mandarin named Trương Phúc Loan changed Khoat's will of succession on his deathbed, and installed Luan's younger brother Nguyễn Phúc Thuần, the sixteenth son, on the throne in 1765. Luan was jailed and died in the 1765, the same year as Thuan's installation. However, the historian Choi Byung Wook claims that the notion that Luân was the designated heir was based on fact but was propagated by 19th century Nguyễn dynasty historians after Nguyễn Ánh had taken the throne as Gia Long to establish the emperor's legitimacy. According to Choi, Lord Khoát had originally chosen the ninth son, who then died, leaving Loan to install Lord Thuần. At the time, the alternative was the eldest son of the ninth son, Nguyễn Phúc Dương, whom opposition groups later tried unsuccessfully to convince to join them as a figurehead to lend legitimacy. In 1775, Thuan was forced to share power with Dương by military leaders who supported the Nguyêns. At this time, Nguyễn Ánh was a minor member of the family and did not have any political support among court powerbrokers. However, Thuan lost his position as lord of southern Vietnam and was killed, along with Duong, during the Tây Sơn rebellion led by the brothers Nguyễn Nhạc, Nguyễn Huệ and Nguyễn Lữ in 1777. Nguyễn Ánh was the most senior member of the ruling family to have survived the Tây Sơn victory, which pushed the Nguyễn from their heartland in central Vietnam, southwards towards Saigon and into the Mekong Delta region in the far south. This turn of events changed the nature of the Nguyễn power hierarchy; the family and the first leader Nguyễn Hoàng had originally come from Thanh Hoa Province in northern Vietnam, and this is where most of their senior military and civil leadership's heritage derived from, but as a result of the Tây Sơn's initial successes, much of this old power base was destroyed and Nguyễn Ánh had to rebuild his support network among southerners, who later became the core of the regime when the Nguyễn dynasty was established. Nguyễn Ánh was sheltered by a Catholic priest Paul Nghi (Phaolô Hồ Văn Nghị) in Rạch Giá. Later, he fled to Hà Tiên on the southern coastal tip of Vietnam, where he met Pigneau de Behaine, a French priest who became his advisor and played a major part in his rise to power. Receiving information from