Chao Tak then crowned himself as Taksin and proclaimed Thonburi as temporary capital in the same year. He also quickly subdued the other warlords. His forces engaged in wars with Burma, Laos, and Cambodia, which successfully drove the Burmese out of Lan Na in 1775, captured Vientiane in 1778 and tried to install a pro-Thai king in Cambodia in the 1770s. In his final years there was a coup, caused supposedly by his "insanity", and eventually Taksin and his sons were executed by his longtime companion General Chao Phraya Chakri (the future Rama I). He was the first king of the ruling Chakri Dynasty and founder of the Rattanakosin Kingdom on 6 April 1782.