During the times of the Roman Empire, the Municipium Isturgi Triumphale was part of the province of Hispania Ulterior and then Hispania Baetica and the area known as the Conventus Cordubensis.
During the Napoleonic Wars, the city was occupied by French troops in 1808.