 In the reign of King Boromakot, Kui was fourth-class city.In the Rattanakosin era, King Rama II established a "Mueang" Bang Nang Rom, which had its city hall in Kui Buri.King Mongkut (Rama IV) renamed Mueang Bang Nang Rom "Prachuap Khiri Khan", with the same city hall.