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 of them killed in the fight on the elephant backs.
King Boromrachathirat II then was invited to ascent the throne instead.