According to legend, Maha Sumana Thera, a monk from the Sukhothai Kingdom, after having had a vision discovered a relic of the Buddha which, also according to the same vision, was to be housed in Chiang Mai. Sumana Thera stayed two rainy seasons at Wat Phra Yuen just outside Lamphun at the invitation of King Kue Na while the latter had Wat Buppharam Dok Mai built. When the moment arrived for the relic to be housed in the newly built temple, it miraculously duplicated itself. One of the relics was housed, as intended, in a shrine inside Wat Buppharam Dok Mai, while the other relic was placed on the back of a white elephant which then climbed up Doi Suthep, the mountain directly west of Chiang Mai, where it trumpeted three times and died. Wat Phrathat Doi Suthep was built on that spot to house the second relic.