He served as the president of the Supreme Court (1968–1973) and was dean of the faculty of law and chancellor of Thammasat University during the democracy movement of October 1973.
Sanya served a second consecutive term by a House resolution for a combined total of 1 year, 124 days, during which he ordered the withdrawal of US forces in what was called Operation Palace Lightning.
His father was the high ranking Buddhist scholar, Mahamtree, and abbot, Dhammasarnvetvisetpakdee Srisattayawatta Phiriyapaha or Thongdee Dharmasakti.
[citation needed] Palace Lightning was the name given the plan by which the USAF withdrew its aircraft and personnel from Thailand.
After the fall of the US-supported governments in both Phnom Penh and Saigon in the spring of 1975, the political climate between Washington and the government of Judge Sanya soured, and US military forces were ordered to withdraw by the end of the year.