special corps (hasam) under Ahmad ibn Muhammad ibn Hudayr, governor of Écija, to Seville, to obtain their submission. This attempt failed, but gained him the support of Muhammad ibn Ibrahim ibn Hayyay, lord of Carmona, and a cousin of the Sevillan lord, Ahmad ibn Maslama. When the latter was surrounded by Umayyad troops, he sued for help to Ibn Hafsun, but the latter was defeated by the besiegers and returned to Bobastro. Abd al-Rahman next went after the forts in the provinces of Elvira, Granada, and Jaén, all of which were either directly or indirectly controlled by Hafsun. Seville finally capitulated on 20 December 913. Ibn al-Mundhir al-Qurays, a member of the royal family, was named governor of the city, while the Lord of Carmona obtained the title of vizier. Muhammad ibn Ibrahim enjoyed his office for only a single day, for Abd al-Rahman soon discovered his collusion with the rebel governor of Carmona. Muhammad was sent to prison, where he later met his death. The region of Valencia submitted peacefully in 915. Ibn Hafsun and other rebels Abd al-Rahman's next objective was to quash the long-standing rebellion of Umar ibn Hafsun. His troops left Córdoba on 7 May 914 and, after a few days, encamped before the walls of Balda (identified with today's Cuevas de San Marcos). His cavalry ravaged the nearby woods and the countryside, while the rest of the troops moved to Turrus, a castle located in the present municipality of Algarinejo, which was surrounded within five days, while its environs were also devastated. The Umayyad army then moved to the citadel of ʿUmar ibn Hafsun, while the cavalry was sent to the castle of Sant Batir, which was abandoned by the defenders, allowing Abd al-Rahman's troops to secure a large booty. Then it was the turn of the castles of Olías and Reina. The latter fell after a violent fight, leaving the road open to the major city and provincial capital of Málaga, which he captured after one day. Abd al-Rahman then turned and followed the coast by Montemayor, near Benahavís, Suhayl (Fuengirola) and another castle called Turrus or Turrus Jusayn (identified by Évariste Lévi-Provençal as Ojén). He finally arrived at Algeciras on 1 June 914. He ordered a patrol of the coast to destroy the boats that supplied the citadel of Umar ibn Hafsun from the Maghreb. Many of them were captured and set afire