In 1777, the Tây Sơn brothers attacked Saigon and eliminated almost the entire Nguyễn dynasty, with the fifteen-year-old Nguyễn Ánh managing to escape into the far south. He took refuge at Pigneau's seminary from September to October before both were forced to flee to the island of Pulo Panjang in the Gulf of Siam. The move was a political step taken by Pigneau to align himself with Nguyễn Ánh, allowing himself a foray into politics. He became less of a missionary and more of a politician thereafter.