 In 1801, his force took Phú Xuân, the Tây Sơn capital.Nguyễn Ánh finally won the war in 1802, when he sieged Thăng Long (Hanoi) and executed Nguyễn Huệ's son, Nguyễn Quang Toản, along with many Tây Sơn generals and officials.Nguyễn Ánh ascended the throne and called himself Emperor Gia Long.