Unable to decide on the site, the king placed the relic in a portal shrine on the back of a white elephant and waited to see where the animal would take it. Eventually, the elephant walked up to the top of Doi Suthep mountain, trumpeted three times, turned around three times, knelt down, and died. The temple was immediately built on the miraculously-chosen site.