Tây Sơn dynasty
Nguyễn army soon occupied the capital Phú Xuân. Nguyễn Quang Toản fled to Đồng Hới, with a dozen men, then to Thăng Long. In there, he was supported by his brother Nguyễn Quang Thùy. Nguyễn Quang Toản changed the era name to "Bảo Hưng" (). He made efforts to gain popularity among Northern Vietnamese. In foreign affairs, he sent an envoy to seek aid from the Jiaqing Emperor of Qing China. Meanwhile, Nguyễn Ánh also sent an envoy, extraditing Mo Guanfu, Liang Wengeng and Fan Wencai to China. Three pirates confessed that they were supported by Tây Sơn dynasty. It proved that Tây Sơn dynasty had shielded many Chinese pirates. Before this incident, Chinese government had captured two pirates Wang Guili (, "Vương Quý Lợi") and Fan Guangxi (, "Phạm Quang Hỉ"); in their vessels, Chinese found two Tây Sơn official seals. The irate Jiaqing rejected to help Nguyễn Quang Toản, and deported his envoy.