The founding of the city state of Ngoenyang in the 8th century CE, of which Mangrai was a prince before establishing the Lanna Kingdom in the 13th century, is also attributed to the Lawa in the Doi Tung story.