The history of Phrae dates back to the Haripunchai kingdom of the Mon. It became part of the Lannathai kingdom in 1443, when King Tilokaraj was on an expedition to capture Nan.