the Wangna or Prince Sura Singhanat of the Front Palace. In 1783, Bangkok city walls were constructed with part of the bricks taken from Ayutthaya ruins. Lao and Cambodian laborers were assigned to dig the city moat. The Grand Palace and the Wat Phra Kaew were completed in 1784 and the Emerald Buddha was transferred from Wat Arun to be placed in Wat Phra Kaew. In 1785, King Rama I performed full coronation ceremony and named the new city "Rattanakosin", which meant the "Jewel of Indra" referring to the Emerald Buddha. Burmese wars The Burmese continued to pose the major threat to Siamese state of existence. In 1785, King Bodawpaya of the Burmese Konbaung dynasty sent massive armies to invade Siam in five directions in the Nine Armies' War. Decades of continuous warfare had left Siam depopulated and the Siamese court managed to muster only the total of 70,000 men against the 144,000 men of Burmese invaders. The Burmese, however, were over-stretched and unable to converge. Prince Sura Singhanat led his army to defeat the main army of King Bodawpaya in the Battle of Latya in Kanchanaburi in 1786. In the north, the Burmese laid siege on Lanna Lampang. Kawila the ruler of Lampang managed to hold the siege for four months until relief forces from Bangkok came to rescue Lampang. In the south, Lady Chan and Lady Mook were able to fend off Burmese attacks on Thalang (Phuket) in 1786. After the unfruitful campaign, King Bodawpaya of Burma sent his son Uparaja Thado Minsaw to invade Kanchanaburi concentrating only in one direction. King Rama I and his brother Prince Sura Singhanat defeated the Burmese in the Tha Dindaeng Campaign in 1786–1787. After victories over Burmese invaders, Siam staged the offensives on the Tenasserim Coast, which was the former territory of Ayutthaya. King Rama I marched Siamese armies to lay siege on Tavoy in 1788 but did not succeed. In 1792, the Burmese governors of Tavoy and Mergui defected to Siam. Siam came to temporarily occupy the Tenasserim Coast. However, as the court was preparing for the invasions of Lower Burma, King Bodawpaya sent his son Thado Minsaw to reclaim Tenasserim. The Siamese were soundly defeated by the Burmese in the Battle of Tavoy in 1793 and ceded the Tenasserim Coast to Burma for perpetuity, becoming modern Tanintharyi Division. Lord Kawila was finally able to re-establish Chiang Mai as the