From 1979 to 1997, he and a remnant of the old Khmer Rouge operated near the border of Cambodia and Thailand, where they clung to power, with nominal United Nations recognition as the rightful government of Cambodia.