廣南國
After a 1782 massacre of ethnic Chinese settler was carried out by the Tây Sơn, the support of the Chinese shifted towards to the Nguyễn lords. The Nguyễn lords eventually defeated the Tây Sơn dynasty thanks to ethnic Chinese support, took complete control of Vietnam, and established the imperial Nguyễn dynasty in 1802.