Ayutthaya was sacked in 1767 by the Burmese, but King Taksin regrouped and founded a new capital at Thonburi. His successor, General Chakri, moved across the river to Bangkok and became King Rama I, the founding father of the Chakri dynasty that rules (constitutionally) to this day.
Known as Siam until 1939, Thailand is the only Southeast Asian country never to have been colonised by a foreign power, and is fiercely proud of that fact. A bloodless revolution in 1932 led to a constitutional monarchy.
During World War II, while Japan conquered the rest of Southeast Asia, only Thailand was not conquered by the Japanese due to smart political moves. In alliance with Japan during World War II, Thailand became a US ally following the conflict.
After a string of military dictatorships and quickly toppled civilian Prime Ministers, Thailand finally stabilized into a fair approximation of a democracy and the economy boomed through tourism and industry.