Its origins go back to the Celts who called this spot Arunda; some historians situate the city in Acinipo, and both populations were passed to the Romans; later on it was Muslim and in the XV century, conquered by the Catholic Kings. It was also occupied by Napoleanic troops and defend themselves from them, they organised centers of banditry.
The hitoric city is divided into three zones: the neighbourhood of San Francisco (XV century), Puerta de Almocábar (XIII century) and Puerta de Carlos I (XVI century).