The Akha are an ethnic group who live in small villages at higher elevations in the mountains of Thailand, Myanmar, Laos and Yunnan Province in China. They made their way from China into Southeast Asia during the early 20th century. Civil war in Burma and Laos resulted in an increased flow of Akha immigrants and there are now 80,000 people living in Thailand's northern provinces of Chiang Rai and Chiang Mai. The Akha speak Akha, a language in the Loloish (Yi) branch of the Tibeto-Burman family. The Akha language is closely related to Lisu and it is thought that it was the Akha who once ruled the Baoshan and Tengchong plains in Yunnan before the invasion of the Ming Dynasty in 1644. Scholars agree with the Akha that they originated in China; they disagree, however, about whether the original homeland was the Tibetan borderlands, as the Akha claim, or farther south and east in Yunnan Province, the northernmost residence of present-day Akha. The historically documented existence of relations with the Shan prince of Kengtung indicates that Akha were in eastern Burma as early as the 1860s. They first entered Thailand from Burma at the turn of the 20th-century, many having fled the decades-long civil war in Burma. Akha live in villages in the mountains of southwest China, eastern Myanmar, western Laos, northwestern Vietnam, and northern Thailand. In all these countries they are an ethnic minority. The population of the Akha today is roughly 400,000. A decline in village size in Thailand since the 1930s has been noted and attributed to the deteriorating ecological and economic situation in the mountains. The Akha are often classified by the Chinese government as part of the Hani, an official national minority. The Akha are closely related to the Hani, but consider themselves a distinct group and often resist being subsumed under that identity. In Thailand, they are classified as one of the six hill tribes, a term used for all of the various tribal peoples who migrated from China and Tibet over the past few centuries and who now inhabit the dense forests on the borders between Thailand, Laos, and Burma.