Afonso IV of Portugal
Flush from these victories, in 1339, Abu al-Hassan received an appeal from the Nasrid ruler Yusuf I of Granada to help drive back the Castilians. The assembly of a large Marinid invasion force in Morocco prompted the Castilian king Alfonso XI to bring to an end his quarrel with Afonso IV of Portugal.