Indianised kingdoms such as the Mon, Khmer Empire and Malay states ruled the region, competing with Thai states such as the Kingdoms of Ngoenyang, Sukhothai, Lan Na and Ayutthaya, which also rivalled each other. Tai peoples migrated from southwestern China to mainland Southeast Asia from the 6th to 11th century. Bangkok is the nation's capital and largest city. 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 it also shares maritime borders with Vietnam to the southeast, and Indonesia and India to the southwest. With a population of almost 70 million, it spans 513,120 square kilometres (198,120 sq mi). Thailand ( / ˈ t aɪ l æ n d, - l ə n d/ TY-land, -lənd), officially the Kingdom of Thailand and historically known as Siam ( / s aɪ ˈ æ m, ˈ s aɪ æ m/), is a country in Southeast Asia on the Indochinese Peninsula. You may need rendering support to display the Thai text in this article correctly.