Ram Khamhaeng
In 1287, Mangrai first made peace between King Ngam Muang of Phayao and King Ram Khamhaeng of Sukhothai, who had seduced the former's queen. The three Kings then entered a "Strong pact of friendship".