By the end of the 14th century Nan was one of the nine northern Thai-Lao principalities that formed Lanna. The city-state flourished throughout the 15th century under the name Chiang Klang ('middle city'), a reference to its position roughly midway between Chiang Mai ('new city') and Chiang Thong ('golden city'), today's Luang Prabang).
