A history of Chiang Mai, from Mangrai's capital to the railway

King Mangrai founded Chiang Mai on 12 April 1296. It was the capital of the Mangrai dynasty's Lanna kingdom, then spent two centuries under Burmese rule. Kawila came back to the empty city in 1796, and later the north joined Siam and the railway arrived.

Chiang Mai › History and culture

Sources checked:

An old black and white photograph of the city wall beside the still water of the moat, with a tree and a path in front
Fig. 1 Chiang Mai's walls and moat, in a book of 1927 · Photo (cropped): Houghton Mifflin, 1927, Public domain, via Wikimedia Commons

Before 1296, and Mangrai's founding

People lived in what became Lanna thousands of years ago, and the Lua lived here before Chiang Mai was built. Further south, the Mon kingdom of Hariphunchai ruled from what is now Lamphun. Doi Suthep was once called Doi Oi Chang.

In the thirteenth century King Mangrai, ruler of Yonok and founder of Chiang Rai in 1262, pushed south into the Ping basin. He took Hariphunchai in 1281 and built Wiang Kum Kam beside the Ping. For a lasting capital he chose a site between Doi Suthep and the Ping and, with King Ngam Mueang of Phayao and King Ramkhamhaeng of Sukhothai, settled the plan of a city 900 wa by 1,000 wa. He founded Nopphaburi Si Nakhon Phing Chiang Mai, "the new city", on Thursday 12 April 1296, the date recorded on Stone Inscription No. 76 at Wat Chiang Man, the monastery built where he had lived while the city went up.

The Lanna kingdom

For about 261 years, Chiang Mai was the capital of the Mangrai dynasty's Lanna kingdom, with its own law, the ancient law of King Mangrai, and its own alphabets, language and literature. Its rulers built monasteries in the Old City and the hills to the west. Around 1345 King Phayu founded Wat Li Chiang, next to a market, for his father's ashes; it is now Wat Phra Singh. King Kuena brought the Lanka school of Theravada Buddhism from Sukhothai, founding Wat Suan Dok outside the walls in 1371 and Wat Phra That Doi Suthep on the mountain in the 1380s. His son, King Saen Mueang Ma, began Wat Chedi Luang in the middle of the city in 1391.

Under King Tilokaraj and the kings after him, the Emerald Buddha was brought from Lampang to Wat Chedi Luang in 1468, and it stayed there until 1548. The Eighth World Buddhist Council met in Chiang Mai in 1477 to revise the Pali canon, and the great chedi was enlarged between 1479 and 1481. King Mueang Kaeo's great restoration of the city walls was finished in 1520. By the 1540s, quarrels over the succession had weakened the dynasty.

Wiang Chet Lin at the foot of Doi Suthep

About 3 km north-west of the city, where Huai Kaeo Road now runs along the lower eastern slope of Doi Suthep, lay Wiang Chet Lin (เวียงเจ็ดลิน), a round walled town built around a natural spring. The Chiang Mai Chronicle (Tamnan Phuen Mueang Chiang Mai) has King Sam Fang Kaen building it in the same year as a gift to Phra Suwanna Maha Wihan, and an inscription dates that gift to 1411. Two other chronicles, the Tamnan Chiang Mai Pang Doem and the Tamnan Suwanna Kham Daeng, tell of an earlier Lua town at the foot of the mountain, Wiang Chetthaburi, which may have stood on the same ground.

Digs in 1998, 2009 and 2019 have found nothing from before the mid-1200s. The town looks to have been a foothill outpost of Chiang Mai's own time, with forest around it and water to spare, and parts of its rampart and moat survive in the Huai Kaeo Arboretum.

Two centuries of Burmese rule

In 1558 the forces of King Bayinnaung of Hanthawaddy took Chiang Mai, ending the Mangrai dynasty's independence. For nearly two hundred years the city was ruled from Burma, which influenced Chiang Mai's architecture, language, food and dress.

Kawila and the return to the city

Allied with King Taksin of Thonburi, the northern leaders Phraya Kawila and Phraya Chaban drove the Burmese out of Chiang Mai in 1774. In 1782, under King Phutthayotfa Chulalok in Bangkok, Kawila was made ruler of Chiang Mai, the first of the Chao Chet Ton dynasty, which ruled until 1939.

The city lay empty, so for fourteen years Kawila ruled from Wiang Pa Sang, before coming back into Chiang Mai on 14 April 1796. Between 1798 and 1813 he brought people from across Lanna to settle the city, among them Tai Yuan families placed along Tha Phae Road around 1804. He moved the Inthakin, the city pillar, to Wat Chedi Luang in 1800, and in 1801 the walls were repaired and the moat dredged.

Joining Siam

After Siam's Bowring Treaty with Britain in 1855, foreign timber companies came into the northern teak forests, the Borneo Company among them from 1864. Bangkok and Britain signed the Treaties of Chiang Mai in 1873 and 1883.

In the 1890s, under King Chulalongkorn, Siam brought the north into its new provincial system as Monthon Phayap (1894 on the city museum's timeline, 1897 in the provincial records). On 30 June 1919 the Monthon Phayap government building opened in the middle of the Old City; it is now the City Arts and Cultural Centre. After the change to a constitutional monarchy in 1932, the monthon gave way to Chiang Mai Province (1932 on the museum's timeline, 1933 in the commerce office's). On 29 March 1936 Chiang Mai's sanitary district, set up in 1915, became Chiang Mai City Municipality, the first city municipality in Thailand.

The railway and the twentieth century

Before the railway, goods went between Chiang Mai and Bangkok by boat on the Ping River. The Northern Line reached Chiang Mai in the early 1920s, and the National Archives' records show the rice sent out by rail rising from between 5,000 and 20,000 hap to 650,000 hap in 1924. Tha Phae Road grew into a trading street, with Yunnanese, Tai Yai and Burmese merchants, and Chiang Mai's first commercial bank opened there in 1927. Volunteers led by the monk Kruba Srivichai built the road up Doi Suthep between 9 November 1934 and 30 April 1935. On 18 June 1964 Chiang Mai University opened, Thailand's first public university outside Bangkok.