The Kingdom of Lanna, which covers much of northern Thailand, was a thriving state long before the rise of Sukhothai and Ayutthaya. Chiang Mai can trace its history back more than 700 years, making it one of the most historic cities in Thailand. Much of this legacy remains and wandering around the old town will reveal ancient city walls and gates, as well as temples that have stood for half a millennium or more.