The Mon kingdoms of Davaravati and Hariphunchai were closely related. The Kingdom of Hariphunchai is thought to have been founded by Princess Chamadevi in the eighth century and it flourished until absorbed into the Thai state of Lanna at the end of the thirteenth century.