In 1765, Phraya Tak came to Ayutthaya to help defend the capital. He fought valiantly and earned great recognition. He was promoted to the title and rank of Phraya Wachira Prakan, Governor of Kamphaeng Phet. It is believed, that prior to the fall of Ayutthaya, he got out of the capital by fighting his way through the Burmese seige with the aim of assembling men to liberate the country.