 By 1776, the Tây Sơn had occupied all of the Nguyễn Lord's land and killed almost the entire royal family.The surviving prince Nguyễn Phúc Ánh (often called Nguyễn Ánh) fled to Siam, and obtained military support from the Siamese king.Nguyễn Ánh came back with 50,000 Siamese troops to regain power, but was defeated at the Battle of Rạch Gầm–Xoài Mút and almost killed.