avenue of retreat for the Japanese after their disastrous defeat at Imphal and Kohima.
In 1967, the Thai government started developing the road leading from Chiang Mai via Pai to Mae Hong Son, known today as Route 1095, but didn't finish paving the route until the early- to mid-1990s.
Pai's recent history is one of waves of migration: in addition to the aforementioned waves of old Shan and Lanna immigrants, Karen immigrants arrived in the 18th century, Lisu and Lahu people from areas of southern China arrived in the early 20th century, Muslim families from Chiang Mai began arriving to establish trade businesses starting around 1950, a group of Kuomintang fleeing Mao Zedong established a community in Pai in the early 1960s, and finally a new wave of refugees from the Shan State of Burma have arrived in the last few decades, fleeing the turmoil caused by the Burmese Junta to work as laborers in Thailand