 Possession of the city was contested by the Taifa of Córdoba, the Taifa of Seville and the Taifa of Toledo, after the fragmentation of Al-Andalus.During the Reconquista, the region was in a constant state of siege and battle.With the Christian victory at Las Navas de Tolosa (1212), the area began to repopulate.