The Sukhothai and the Ayutthaya were among the first kingdoms. Apart from being under constant threat from Khmers, Burma and Vietnam, these states constantly fought amongst each other. They were threatened by European colonial powers in the 19th and the early 20th century, but Thailand is the only Southeast Asian country could avoid the colonial rule.