The temple is situated on the north side of the north moat surrounding the old part of the city, about 400 meters west of the Chang Phuak city gate.
The sixth king of the Mangrai dynasty, King Kuena (1355-1385), invited ten Buddhist monks from Burma to spread their teachings on Theravada Buddhism.
In 1527, King Ket (also known as Mueangketklao or Phra Kaew Muang) commissioned the chedi and in 1545, he also had the viharn (assembly hall) built.
Until the demise of their dynasty, the Mengrai royal family took the responsibility for maintaining the temple.
Of note are the finely sculptured Nāgas and wooden temple façade.