Ferdinand III of Castile
In 1225, King Ferdinand III of Castile and Leon captured the city from the Moors and incorporated it into his kingdom.