Thailand which are gathered into five groups of provinces by location. There are also two specially-governed districts: the capital Bangkok (Krung Thep Maha Nakhon) and Pattaya. Bangkok is at provincial level and thus often counted as a province. Each province is divided into districts and the districts are further divided into sub-districts (tambons). there were 878 districts (อำเภอ, amphoe) and the 50 districts of Bangkok (, khet), which is further divided into 7,255 subdistricts (, tambon) in the 76 provinces or Bangkok's subdistricts (แขวง, khwaeng). Some parts of the provinces bordering Bangkok are also referred to as Greater Bangkok (, pari
Pai, Thailand and authority of the Lanna kingdom. Ban Wiang Nuea as a result became a village sharply divided into two parts by a wall into a "Shan" part and a "Lanna" part. In the second half of the 19th century, colonial powers France and England, who had already established their influence in Vietnam, Cambodia, Laos, and Burma, were viewing the area of modern-day Thailand with increasing interest. To consolidate Siam's influence and authority in the northern border region, the royal house encouraged Northern Thais from provinces like Payao, Lamphun, and Nan to migrate to those areas. The result again was conflict: