it was an important fortress on the way between córdoba and sevilla