On December 19, 1308, in Alcalá de Henares, Ferdinand IV of Castile and the Aragonese ambassadors Bernat de Sarriá and Gonzalo García initialed the Treaty of Alcalá de Henares[1] Ferdinand IV, who had the support of his brother, the infante Pedro of Castile, Diego López V of Haro, the archbishop of Toledo and the bishop of Zamora, agreed to initiate war against the kingdom of Granada on 24 June 1309 and pledged, as did the Aragonese monarch, not to sign a separate peace with the Granada monarch.
It was approved with the compromise of both parties that the troops of the Kingdom of Castile and León would attack the squares of Algeciras and Gibraltar, while the Aragonese would conquer the city of Almería.
[2] Ferdinand IV undertook to cede one sixth of Granada to the Aragonese king and granted him the kingdom of Almería in its entirety as an advance.
By means of the Treaty of Barcelona (1309)[3] an alliance was agreed upon between King Jaime II of Aragon and Abu- r-Rabin Sulayman ibn Yússuf, the Marinid sultan, whereby the latter engaged the services of a fleet and an army of Aragonese Christian mercenaries for the conquest of Ceuta, held by Emir Nasr ibn Muhammad of Granada.
[6] James II of Mallorca added a galley to the blockade of the strait to rescue some Mallorcan merchants held in the Nasrid kingdom of Granada.