Mangrai
Template:Short description Template:Infobox royalty Template:Contains special charactersTemplate:Infobox ChineseMangrai (Template:Langx; Template:Langx; c. 1238–1311) was the 25th king of Ngoenyang (r. 1261–1292) and the first king of Lan Na (r. 1292–1311). He established a new city, Chiang Mai, as the capital of the Lan Na Kingdom (1296–1558).<ref name="Wyatt-Thailand">Wyatt, D. K. Thailand, A Short History, p. 35–38, Bangkok 2003</ref><ref>'King Mangrai of Lan Na' in: Forbes, Andrew, and Henley, David, Ancient Chiang Mai Volume 1. Chiang Mai, Cognoscenti Books, 2012.</ref><ref name="Coedes">Template:Cite book</ref>Template:Rp
Early years

King Mangrai the Great was born on 23 October 1238, in Ngoen Yang<ref name="Wyatt-Thailand"/> (present day Chiang Saen), Thailand, on the Mekong River, a son of the local ruler Lao Meng and his wife Ua Ming Chom Mueang, a princess from the Tai Lue city of Chiang Rung, which is now called Jinghong, in Sipsongpanna (Xishuangbanna), China.
In 1259, Mangrai succeeded his father to become the first independent king of the unified Tai city states in northern Lanna and what is now northern Laos. Seeing the Tai states disunited and in danger, Mangrai quickly expanded his kingdom by conquering Muang Lai, Chiang Kham and Chiang Khong and initiating alliances with other states.
In 1262, he founded the city of Chiang Rai as his new capital in the Kok River basin. He also seems to have been operating around this time in the area of Fang in the Upper Kok Valley.<ref name="Wyatt-Thailand"/>
In 1287, Mangrai first made peace between King Ngam Muang of Phayao and King Ram Khamhaeng of Sukhothai, who had seduced the former's queen. The three kings then entered into a "Strong pact of friendship".<ref name=Coedes/>Template:Rp
While still living in the area of Fang, he was visited by merchants from the Mon kingdom of Haripunchai (Haripunjaya, now known as Lamphun). Hearing of the wealth of that kingdom, he was determined to conquer it, against the advice of his counselors.<ref name="Wyatt-Thailand"/> As it was thought impossible to take the city by force, Mangrai sent a merchant named Ai Fa as a mole to gain the confidence of its King Yi Ba. In time, Ai Fa became the Chief Minister and managed to undermine the King's authority.
In 1291, with the people in a state of discontent, Mangrai defeated the Mon kingdom and added Haripunchai to his kingdom. Yi Ba, the last king of Hariphunchai, was forced to flee south to Lampang.<ref name=Coedes/>Template:Rp
Chiang Mai Era
After defeating the Hariphunchai kingdom, Mangrai decided to relocate his capital, and in 1294, Wiang Kum Kam was founded on the eastern bank of the Ping River.<ref>Template:Cite web</ref><ref>Template:Cite web</ref> The site was plagued with floods, and a new site was chosen several kilometres to the northwest at the foot of Doi Suthep, on the site of an older fortified town of the Lua people.<ref>Template:Cite web</ref> Construction of Chiang Mai (lit. "New City") began in 1296. and it has been the capital of the northern provinces more or less ever since.<ref name="Wyatt-Thailand"/>
A few years later, Yi Ba's son, King Boek of Lampang, attacked Chiang Mai with a large army. King Mangrai and his second son, Prince Khram, led the defence against the Lampang army.
Prince Khram defeated King Boek in personal combat on elephant-back at Khua Mung, a village near Lamphun. King Boek fled by way of the Doi Khun Tan mountain range between Lamphun and Lampang, but he was caught and executed.<ref name="Wyatt-Thailand"/> King Mangrai's troops occupied the city of Lampang, and King Yi Ba was made to flee further south, this time to Phitsanulok.
Death and succession
King Mangrai's eldest son grew tired of waiting and tried to seize the throne, but his attempt failed and he was executed. Mangrai's second son, Khun Kham, was then named to succeed Mangrai.<ref name="Wyatt-Thailand"/>
King Mangrai died in 1311<ref name=":2">Ratanapannya Thera. (1788). Jinakalamali.</ref> or 1317<ref name=":0">Template:Cite book</ref> in Chiang Mai. According to tradition, he was struck by lightning during a thunderstorm when he was in the city's market.<ref>Template:Cite web</ref>
Mangrai's death was followed by period of confusion, with six kings ruling in the next eleven years. This could have been disastrous if the northern powers had not had their own troubles. Sukhothai to the south had also been weakened.
Not until the ascension of Mangrai's grandson, Kham Fu, in 1328 did the kingdom achieve the stability it had had during the lifetime of its founder.<ref name="Wyatt-Thailand"/>
Notes
<references group="Note"/>
References
Template:Commons category Template:ReflistTemplate:S-start Template:S-hou Template:S-reg Template:S-bef Template:S-ttl Template:S-aft Template:S-break Template:S-new Template:S-ttl Template:S-aft Template:S-endTemplate:Kings of Lan Na Template:Monarchs of Thailand Template:Authority control