The great Laotian epic, the Phra Lak Phra Lam, claims that Prince Thattaradtha founded the city when he left the legendary Lao kingdom of Muong Inthapatha Maha Nakhone because he was denied the throne in favor of his younger brother.
When King Anouvong raised an unsuccessful rebellion, it was obliterated by Siamese armies in 1827.