This temple was built by king of Ayuttaya named King Boromrachathirat the second or King Sam Phraya, the third son of King Nakharin.
The temple was built on the cremation site of his two brothers at the place were fight over to the throne, both pf them killed each other on the elephant backs.