In Thon Buri, King Taksin became insane. He had, in fact, been eccentric for a few years, probably due to the war strain and overwork arising from absolute rule. When he was out of his mind, he inflicted cruel punishment on those who would not comply with his wishes, an instance of which was the flogging of many monks for their refusal to make obeisance to him as a self-styled incarnation of the Buddha. A revolt against him broke out at Ayutthaya and was led by Phya San who was so successful in his venture that he held the King and the senior princes in captivity.

As soon as Somdech Chao Phya Mahakasatsuek had arrived at the capital in April 1782, he consulted all the principal officials as to the punishment to be meted out to the mad King. Their unanimous counsel was death for him.

Taksin was accordingly put to death. The rebellious Phya San and his chief collaborators suffered the same fate. For the peace and tranquillity of the Kingdom, they humbly offered the crown to Somdech Chao Phya Mahakasatsuek who thereupon ascended the throne as King Ramatibodi at the age of forty five. He inaugurated the Bangkok period under the Chakri dynasty, named after his title of Chao Phya Chakri. (Syamanda, Rong, 1990 : 93-99)