1. The Three Kings Pact & the Founding of Chiang Mai (1296 CE)
As the Sukhothai Kingdom consolidated in the Yom and Nan valleys during the 13th century, King Mangrai of the Lawachakkarat line in Chiang Rai annexed the Mon kingdom of Hariphunchai in 1292 and forged the celebrated Three Kings Alliance with Ngam Muang of Phayao and Ramkhamhaeng of Sukhothai to deter Mongol-Yuan expansion [S1][S2].
On 12 April 1296 CE, after consulting his two royal allies, Mangrai established a new capital between Doi Suthep and the Ping River: Nopphaburi Si Nakhon Phing Chiang Mai [S1][S2]. Laid out with a square brick wall and hydraulic moat aligned to Buddhist cosmology and flood control, Chiang Mai became the political anchor of Lan Na (“Kingdom of a Million Rice Fields”), uniting northern Thailand’s intermontane basins [S1][S2].

2. The Mangraisat Legal Code & Irrigated Community Governance
Lanna’s longevity rested on agrarian and legal institutions as much as royal diplomacy. Attributed to Mangrai’s reign, the Mangraisat (Mangrai Legal Code) codified customary northern jurisprudence covering inheritance, civil restitution (sinmai), military obligations, temple-serf exemptions, and strict collective duties for maintaining gravity-fed muang-fai (weir-and-canal) irrigation [S2][S5]. Although surviving palm-leaf manuscripts date from later centuries, the code reflects an organized local judiciary tailored to mountain-valley rice agriculture [S5].
3. Golden Age of Lanna Buddhism: Dhamma Script & King Tilokaraj (1477)
From the mid-15th to early 16th century, Lanna reached its intellectual and artistic zenith under King Tilokaraj (r. 1441–1487), who expanded northern power toward Nan, Phrae, and neighboring Tai Shan polities while waging decades-long frontier campaigns against Trailokkanat of Ayutthaya [S2][S5]. Monastic reform movements anchored at Wat Suan Dok and Wat Pa Daeng fostered two enduring scripts: the sacred Lanna Dhamma (Tham) script for Pali palm-leaf manuscripts and the secular Fak Kham script for stone steles [S3].
In 1477 CE, Tilokaraj convened what northern chronicles celebrate as the Eighth Buddhist Council at Wat Photharam Mahawihan (Wat Chet Yot) in Chiang Mai to purify and standardize the Pali Tipitaka [S1][S2]. Lanna scholars subsequently authored landmark Pali chronicles such as the Jinakalamalipakarana and Mangalatthadipani, while royal artisans erected the towering stupa of Wat Chedi Luang and fired glazed celadon wares at Wiang Kalong and San Kamphaeng [S1][S4].
4. Toungoo Burmese Rule (1558–1774) & the 1774–1775 Liberation
Succession disputes after Tilokaraj’s dynasty weakened Chiang Mai, and on 2 April 1558 King Bayinnaung of Burma’s Toungoo Dynasty captured the city [S2][S5]. For 216 years (1558–1774), Lanna remained under Burmese suzerainty or direct military governorship; heavy conscription and tribute sparked repeated rebellions and depopulation across northern valleys, even as Burmese and Shan craftsmanship blended into northern temple architecture [S2][S5].
The geopolitical turning point arrived after the 1767 fall of Ayutthaya. Northern leaders Phraya Chaban (Bunma) of Chiang Mai and Chao Kavila of Lampang broke with Konbaung Burmese commanders and allied with King Taksin of the Thonburi Kingdom [S5]. Supported by Thonburi armies led by Phraya Chakri and Phraya Surasi, northern forces drove Burmese garrisons from Chiang Mai and Lampang in 1774–1775, restoring autonomous Lanna dynasties under Siamese suzerainty and launching Chao Kavila’s long demographic reconstruction of northern Thailand [S5].
5. Complete Lanna Rulers Chronology: All 17 Mangrai Monarchs, Burmese Viceroyalty & Chet Ton Restoration
Spanning sovereignty, Burmese occupation, and Siamese-allied revival, Lanna’s dynastic history divides into three distinct eras: (1) the 17 rulers of the Mangrai Dynasty (18 reigns counting Ketklao twice, from Mangrai to Phra Mekuti and Toungoo-vassal Queen Wisutthithewi after Bayinnaung’s 2 April 1558 conquest), (2) Burmese Viceroyalty under Toungoo and Konbaung governors (1579–1775) from Prince Nawrahta Minsaw through Po Mayunguan (punctuated by Thep Sing’s 1727–1763 revolt), and (3) the Thipphachak (Chet Ton) Restoration led by King Kawila and nine hereditary Chiang Mai vassal rulers through Chao Kaew Nawarat (1782–1939) [S2][S5]:
| Era / # | Ruler | Reign (CE) | Dynasty / Status | Historical Significance |
|---|---|---|---|---|
| Mangrai 1 | King Mangrai the Great | 1292/1296–1311/1317 | Mangrai Founder | Annexed Hariphunchai (1292), founded Chiang Mai (1296), promulgated Mangraisat [S1][S2] |
| Mangrai 2 | Chaisongkhram | 1311/1317–1325 | Mangrai | Resided mainly at Chiang Rai while sons administered Chiang Mai [S2] |
| Mangrai 3 | Saen Phu | 1325–1334 | Mangrai | Founded Chiang Saen on the Mekong frontier [S2] |
| Mangrai 4 | Kham Fu | 1334–1336 | Mangrai | Extended influence over Phayao and northern Nan [S2] |
| Mangrai 5 | Pha Yu | 1336–1355 | Mangrai | Returned royal seat to Chiang Mai; built Wat Phra Singh [S1][S2] |
| Mangrai 6 | Kue Na | 1355–1385 | Mangrai | Invited Sukhothai monk Sumana Thera; founded Wat Suan Dok [S2][S3] |
| Mangrai 7 | Saen Mueang Ma | 1385–1401 | Mangrai | Initiated Wat Chedi Luang in central Chiang Mai [S1][S2] |
| Mangrai 8 | Sam Fang Kaen | 1401–1441 | Mangrai | Repelled Ming-era border expeditions before deposition by Tilokaraj [S2] |
| Mangrai 9 | King Tilokaraj | 1441–1487 | Mangrai | Lanna Golden Age; 1477 Buddhist Council at Wat Chet Yot; Ayutthaya wars [S1][S2] |
| Mangrai 10 | Yot Chiang Rai | 1487–1495 | Mangrai | Grandson of Tilokaraj; abdicated amid court rivalries [S2] |
| Mangrai 11 | Mueang Kaeo (Phra Kaeo) | 1495–1525 | Mangrai | Zenith of Lanna Pali literature (Jinakalamali) and temple patronage [S2][S3] |
| Mangrai 12 | Ket Chettharat (Mueang Ketklao) | 1525–1538 & 1543–1545 | Mangrai (2 reigns) | Deposed and restored; assassinated in 1545 noble intrigue [S2] |
| Mangrai 13 | Thao Sai Kham | 1538–1543 | Mangrai | Son of Ketklao; ruled during aristocratic factional strife [S2] |
| Mangrai 14 | Queen Chiraprapha Mahadevi | 1545–1546 | Mangrai (Queen) | Presided during diplomatic crisis with Ayutthaya’s King Chairachathirat [S2][S5] |
| Mangrai 15 | Setthathirath | 1546–1547 | Lan Xang–Mangrai | Returned to Luang Prabang taking the Emerald Buddha [S2] |
| Mangrai 16 | Phra Mekuti (Mae Ku / Phra Mae Kusuma) | 1551–1564 | Mangrai (Mueang Nai) | Submitted to Bayinnaung in 1558; deposed after 1564 anti-Toungoo revolt [S2][S5] |
| Mangrai 17 | Queen Wisutthithewi | 1564–1578 | Mangrai (Toungoo vassal) | Final monarch of Mangrai bloodline ruling under Toungoo suzerainty [S2][S5] |
| Burmese Era | Nawrahta Minsaw, Toungoo Princes, Thep Sing (1727–63) & Konbaung Governors (Po Mayunguan) | 1579–1775 | Toungoo / Revolt / Konbaung | 216-year Burmese hegemony (from 1558) ended by 1774–1775 Lanna–Thonburi alliance [S2][S5] |
| Chet Ton 1 | King Kawila (Borommarachathibodi) | 1782–1816 (Lampang 1774) | Thipphachak (Chet Ton) | Expelled Konbaung forces; led repopulation (“Keb Phak Sai Sa, Keb Kha Sai Mueang“) [S5] |
| Chet Ton 2–5 | Thammalangka (1816–23), Kham Fan (1823–25), Phutthawong (1826–46), Mahotaraprathet (1847–54) | 1816–1854 | Thipphachak (Chet Ton) | Campaigned toward Kengtung & Sipsongpanna as Bangkok tributaries [S5] |
| Chet Ton 6–7 | Kawilorot Suriyawong (1856–70), Inthawichayanon (1873–97) | 1856–1897 | Thipphachak (Chet Ton) | Teak-treaty era & administrative integration into Monthon Phayap [S5] |
| Chet Ton 8–9 | Inthawarorot Suriyawong (1901–10), Maj. Gen. Chao Kaew Nawarat (1911–39) | 1901–1939 | Thipphachak (Chet Ton) | Last hereditary Chiang Mai Chao Luang prior to modern provincial system [S5] |
6. Chronological Summary of the Lanna Kingdom (1296–1775 CE)
| Date (CE) | Milestone | Key Figures | Historical Significance |
|---|---|---|---|
| 1292 / 1296 | Annexation of Hariphunchai & founding of Chiang Mai (12 April 1296) | Mangrai, Ngam Muang, Ramkhamhaeng | Established walled capital & Three Kings frontier pact [S1][S2] |
| c. 1300s | Codification of Mangraisat & muang-fai irrigation rules | Mangrai & early dynasty | Customary civil/irrigation law across northern valleys [S2][S5] |
| 1441–1487 | Lanna Golden Age & Eighth Buddhist Council (1477) | King Tilokaraj | Pali scholarship, Dhamma script, Wat Chet Yot & Chedi Luang [S1][S2][S3] |
| 1558–1774 | Burmese suzerainty (Toungoo & Konbaung dynasties) | Bayinnaung / regional governors | 216 years of tributary rule, conscription & artistic exchange [S2][S5] |
| 1774–1775 | Expulsion of Burmese garrisons & Thonburi alliance | Phraya Chaban, Chao Kavila, King Taksin | Ended Burmese rule and aligned Lanna with Thonburi–Bangkok [S5] |
Continuous Series: Complete History of Thailand: Every Era, Dynasty, War & Region (~500,000 BP → Present) · 28 Chapters
- Series Hub: Complete History of Thailand (28 Chapters)
- 1. Prehistoric Thailand: Lampang, Spirit Cave & Pha Taem (c. 500,000–2,100 BCE)
- 2. Ban Chiang Bronze Culture (c. 2,100 BCE–200 CE)
- 3. Suvarnabhumi, Srivijaya, Hariphunchai & Phimai (c. 300 BCE–1200 CE)
- 4. Dvaravati Polities (c. 550–1050 CE)
- 5. Ancient Town of Si Thep (c. 600–1300 CE)
- 6. Southern & Northeastern Regional Polities: Tambralinga, Patani & Isan (700–1902 CE)
- 7. Sukhothai Kingdom (1238–1438 CE)
- 8. Ramkhamhaeng Inscription (1292 CE)
- 9. Lanna Kingdom & Chiang Mai (1296–1939 CE) (Current Chapter)
- 10. Ayutthaya Kingdom: All 33 Monarchs & 34 Reigns (1351–1767 CE)
- 11. Five Dynasties of Ayutthaya: Statecraft, Sakdina & Succession Crises (1351–1767 CE)
- 12. Ayutthaya–Portugal Diplomacy (1511 CE)
- 13. Siam–Burma Wars: Toungoo Empire & King Naresuan (1538–1605 CE)
- 14. Kosa Pan at Versailles (1686 CE)
- 15. The Siamese Revolution of 1688: Phaulkon, Phetracha & the Bangkok Siege
- 16. Second Fall of Ayutthaya: 14-Month Siege & Bang Rachan (1765–1767 CE)
- 17. Thonburi Kingdom & Unification of Five Factions (1767–1782 CE)
- 18. Founding of Rattanakosin: City Plan & Three Palaces (1782 CE)
- 19. Siam–Burma Wars: Konbaung, Nine Armies & Kengtung (1759–1854 CE)
- 20. Early Rattanakosin Reigns: Rama I to Rama III (1782–1851 CE)
- 21. Anouvong War & the 14-Year Siamese–Vietnamese War (1826–1847 CE)
- 22. Siam’s Era of Reform: Rama IV to Rama VII (1851–1935 CE)
- 23. Paknam Crisis (R.S. 112) & Colonial Territorial Treaties (1786–1909 CE)
- 24. Emancipation of Slaves & Corvee Dismantling Act R.S. 124 (1874–1905 CE)
- 25. Thailand in the World Wars: Ko Chang, WWII & Seri Thai (1917–1945 CE)
- 26. Modern Thailand: 1932, Cold War, Rama VIII–IX & PMs #1–#11 (1932–1973 CE)
- 27. Democratization, Industrial Boom, 1997 Crisis & PMs #12–#22 (1973–2000 CE)
- 28. 21st-Century Thailand: Late Rama IX–Rama X & PMs #23–Present (2001–2026 CE)
Evidence scope & limits
The 1296 CE founding of Chiang Mai, King Tilokaraj's 1477 Council, the 1558 Toungoo conquest, and the 1774–1775 campaign with Thonburi are corroborated across Thai, Lanna, and Burmese chronicles and inscriptions; surviving palm-leaf versions of the Mangraisat legal code reflect later scribal recensions alongside Mangrai-era custom.
Key claims & evidence 3
King Mangrai founded Chiang Mai on 12 April 1296 CE in alliance with Phayao's Ngam Muang and Sukhothai's Ramkhamhaeng, establishing Lanna's political capital.
During Lanna's golden age under King Tilokaraj (1441–1487), the kingdom patronized Dhamma script scholarship and convened the 1477 Buddhist Council at Wat Chet Yot.
Lanna remained under Burmese rule from 1558 until 1774–1775, when Phraya Chaban and Chao Kavila allied with Thonburi forces to expel Burmese garrisons from Chiang Mai and Lampang.
Related entries 3
Sources & locators 5
- UNESCO World Heritage Tentative List — Monuments, Sites and Cultural Landscape of Chiang Mai, Capital of Lanna (#6003)
1296 founding of Chiang Mai & sacred urban plan
Source checked 2026-11-25 - Encyclopaedia Britannica — Lan Na Kingdom
Mangrai, Tilokaraj golden age & 1558 Toungoo conquest
Source checked 2026-11-25 - SAC Inscriptions in Thailand Database — Lanna Epigraphic Corpus
Lanna Dhamma & Fak Kham inscriptions
Source checked 2026-11-25 - Fine Arts Department of Thailand — Chiang Mai Historic Monuments
Wat Chedi Luang, Wat Chet Yot & Lanna city walls
Source checked 2026-11-25 - Wikipedia — Lan Na Kingdom
Mangraisat code, 1477 Council & 1774–1775 Thonburi alliance
Source checked 2026-11-25