 In the 13th Century the bishops recognized that the town was crucial to their income and to administer and defend the surrounding region.Bishop Boniface erected a city wall surrounding a rectangular town with two lanes and four rows of houses in 1231–39.A little later, possibly under the episcopate of William de Champvent (1273–1301), the castle was built was in the southeast of the city.