following this defeat , the thais led by king taksin rrtreated south and established another capital as thon buri . on his death in 1782 , the king was succeeded by king phra buddha yodfah choloke (rama1) who moved the capital across the river to the present location in bangkok as thon buri was too vulnerable to burmese attack . the king founded the chakri dynasty which rules the country to the present day