The twenty years from 1228 to 1248 saw the most massive advance in the reconquista yet. In this great sweep, most of the great old citadels of al-Andalus fell one by one. Ferdinand III took the lion's share of the spoils - Badajoz and Mérida (which had fallen to the Leonese), were promptly inherited by Ferdinand in 1230; then by his own effort, Cazorla in 1231, Úbeda in 1233, the old Umayyad capital of Córdoba in 1236, Niebla and Huelva in 1238, Écija and Lucena in 1240, Orihuela and Murcia in 1243 (by the famous 'pact of Alcaraz'), Arjona, Mula and Lorca in 1244, Cartagena in 1245, Jaén in 1246, Alicante in 1248 and finally, on 22 December 1248, Ferdinand III entered as a conqueror in Seville, the greatest of Andalusian cities. At the end of this twenty-year onslaught, only a rump Andalusian state, the Emirate of Granada, remained unconquered (and even so, Ferdinand III managed to extract a tributary arrangement from Granada in 1238).