Thailand (/ˈtaɪlænd/ TY-land), officially the Kingdom of Thailand and formerly known as Siam, is a country at the center of the Southeast Asian Indochinese peninsula composed of 76 provinces. At 513,120 km2 (198,120 sq mi) and over 68 million people, Thailand is the world's 50th largest country by total area and the 21st-most-populous country. The capital and largest city is Bangkok, a special administrative area. Thailand is bordered to the north by Myanmar and Laos, to the east by Laos and Cambodia, to the south by the Gulf of Thailand and Malaysia, and to the west by the Andaman Sea and the southern extremity of Myanmar. Its maritime boundaries include Vietnam in the Gulf of Thailand to the southeast, and Indonesia and India on the Andaman Sea to the southwest. Although nominally a constitutional monarchy and parliamentary democracy, the most recent coup in 2014 established a de facto military dictatorship.
Tai peoples migrated from southwestern China to mainland Southeast Asia from the 11th century; the oldest known mention of their presence in the region by the exonym Siamese dates to the 12th century. Various Indianised kingdoms such as the Mon, the Khmer Empire and Malay states ruled the region, competing with Thai states such as Ngoenyang, the Sukhothai Kingdom, Lan Na and the Ayutthaya Kingdom, which rivaled each other. European contact began in 1511 with a Portuguese diplomatic mission to Ayutthaya, one of the great powers in the region. Ayutthaya reached its peak during cosmopolitan Narai's reign (1656–88), gradually declining thereafter until being ultimately destroyed in 1767 in a war with Burma. Taksin quickly reunified the fragmented territory and established the short-lived Thonburi Kingdom. He was succeeded in 1782 by Buddha Yodfa Chulaloke, the first monarch of the Chakri dynasty and founder of the Rattanakosin Kingdom, which lasted into the early 20th century.
Through the 18th and 19th centuries, Siam faced pressure from France and the United Kingdom, including forced concessions of territory, but nevertheless it remained the only Southeast Asian country to avoid direct Western rule. Following a bloodless revolution in 1932, Siam became a constitutional monarchy and changed its official name to "Thailand". While it joined the Allies in World War I, Thailand was an Axis satellite in World War II. In the late 1950s, a military coup revived the monarchy's historically influential role in politics. Thailand became a major ally of the United States and played a key anti-communist role in the region. Apart from a brief period of parliamentary democracy in the mid 1970s, Thailand has periodically alternated between democracy and military rule. In the 21st century, Thailand endured a political crisis that culminated in two coups and the establishment of its current and 20th constitution by the military junta.
Thailand is a unitary parliamentary constitutional monarchy under a military junta. Thailand is a founding member of Association of Southeast Asian Nations and remains a major ally of the US. Despite its comparatively sporadic changes in leadership, it is considered a regional power in Southeast Asia and a middle power in global affairs. With a high level of human development, the second largest economy in Southeast Asia, and the 20th largest by PPP, Thailand is classified as a newly industrialized economy; manufacturing, agriculture, and tourism are leading sectors of the economy.