 Wiang Kum Kam is an ancient city ( "wiang" "walled city") located in Saraphi District in the northern region of Thailand, around south of the southeastern corner of Chiang Mai's city centre.According to the chronicles and archaeological evidence, the old city was built by King Mangrai around the latter part of the 13th century.The city was established as a new capital by the King after his victory over the Mon people's kingdom of Hariphunchai, modern Lamphun.