Nguyễn Huệ defeated Chinese army in Ngọc Hồi and Đống Đa in 1789. But Huệ decided to submit himself as vassal of Qing China and agreed to pay tribute annually. If not, Tây Sơn dynasty would fall in a two-front war with both Qing China and Siam.