A friendship sealed before there was a city
Lanna chronicles present King Mengrai of the rising northern Tai kingdom, King Ramkhamhaeng of Sukhothai and King Ngam Muang of Phayao as contemporaries who bound themselves to a mutual non-aggression pact. The alliance mattered strategically: with Sukhothai and Phayao as friends rather than rivals, Mengrai could consolidate the north without fighting on three fronts. In 1296 he founded Chiang Mai — literally the new city — on the plain between the Ping River and the mountain, and the three-way understanding became part of how the city explained its own peaceful beginnings.