 Al-Adil's rebellious cousin, Abdallah al-Bayyasi (the Baezan), appealed to Ferdinand III for military assistance against the usurper.In 1225, a Castilian army accompanied al-Bayyasi in a campaign, ravaging the regions of Jaén, vega de Granada and, before the end of the year, had successfully installed al-Bayyasi in Córdoba.In payment, al-Bayyasi gave Ferdinand the strategic frontier strongholds of Baños de la Encina, Salvatierra (the old Order of Calatrava fortress near Ciudad Real) and Capilla (the last of which had to be taken by siege).