Evidence of human presence since the Neolithic period has been found there. It was the seat of the Oretani, an Iberian tribe which settled in the vicinity in the north of the Guadalquivir River beginning in the sixth century BC. According to tradition, a local princess named Himilce married Hannibal, gained the alliance of the city with the Carthaginian Empire.
