They were built in the mid-fifteenth century in Gothic style. The custom of building walls, towers and gates of the city, as well as maintenance and repair was carried out by the factory Vella Murs i Valls (Factory Old Walls and Moats). Its origin was a privilege of King Pedro IV Ceremonious mid-fourteenth century.