Thammalangka or Earl of the White Elephant is the third son of prince Keaw and princess Chantadevi. He was born in 1746. He joined his brothers, Kawila, Khamsom, Duangthip, Moola, Khamfan, and Boonma to unite Lanna with Siam in 1774. In 1805, Rama I promoted him to be the regent of Chiangmai when Kawila was a ruler. In 1816, Kawila died, he was promoted to be a ruler of Chiangmai. Khamfan, his younger brother who was a ruler of Lamphun became a regent of Chiangmai. Boonma became a ruler of Lamphun. When they went to Bangkok, he gave a white elephant to Rama II and received the name Chao phraya chang pueak Thammalangka. During his reign, he renovated the temples and city walls and created three canals for the people in Chiangmai city. He ruled Chiangmai for six years. He died on 4 May 1822 at the age of 77.
Reign
Religion He built Inthakhin Temple in Pasang with Kawila in 1794. In 1817, he built Wat Phra That Sri Chomthong and renovated Wat Phra Singh. In 1819, he arranged a great celebration in Wat Umong, Wat Duangdee, Wat Sapao, and Wat Phantao and renovated Wat Banping, Wat Dokkham, Wat Chiang yeun, and Wat Bupharam. He created wall for Wat Phra That Sri Chomthong. In 1820, he paid respect to Wat Phra Buddha See Roy and built a temple. He paid respect to Wat Phra BathKhuang Pao. He created a Big Buddha in Wat Phra Singh. In 1822, he made a merit to celebrate Wat Chedi Luang and ordained at Wat Chiangman. Next year, he invited special Buddhas from abandoned temple outside the city wall into temples in the city wall. Created canals In 1817, he ordered the officials and people to dig three canals for people in the city. The first canal started from Jang Hua Lin to Jang Sri Phum and turn to Jang Khatum. The second canal was dug along main road in front of Wat Dubphai to Wat Phra Singh. The third canal was dug along the west battlements toward the south passing the north of Hoa Khum and turned toward Jang Khatum in front of Wat tsaimoon. Fixed City walls It was built since Kawila's reign in 1796. The fix was begun by dumping the moats since Jang Goo Reung until Hai ya gate in 1818. The actual fix of city wall began in 1820. The built began in the morning with the 19 monks from Wat Phra Singh to perform the blessing.