As a response against the invasion, forces led by Yahya ibn Abi Talib al-Azafi governor of Ceuta allied to Granada, besieged Gibraltar and managed to enter some of its suburbs.
Prince Peter, the regent of the Castilian king Alfonso XI led a combined land and naval forces to relieve the town, prompting the besiegers to abandon the siege.
Ferdinand's one-year-old son Alfonso XI became king and the Castilian government was controlled by Prince Peter as regent, while in Granada, Nasr's rule faced a rebellion by his nephew Ismail.
Peter with support from Nasr defeated Granadan forces under Uthman ibn Abi al-Ula near Alicún, and follow up with a raid deep into Granada to plunder and destroy the emirate's rich agricultural lands.
[7] In the early months of 1316,[8] troops led by Ceuta's governor Yahya ibn Abi Talib al-Azafi, whose military reputation was well-known, crossed the strait, defeated a Castilian fleet and laid a siege on Gibraltar.
Peter paid off and disbanded the relieving force, granting his soldiers grandes quittances – loosely speaking, double pay – and returned to his army at Cordoba to continue the harrying of Granada.