There's a lot of this kind of thing all over Thailand and a lot of interesting history to go along with it.
This shrine is outside of the paid historic park across the street. There's quite a few other bits of history from the same era all within walking distance from here.
If you want to know more about these reminence there are information plaques for most of these structures that give you a bit of history on them. There's a barcode you can scan for different languages on the info plaque.
I hope you have some time explore this area a bit.