ألفونسو الحادي عشر
By the Pact of Madrid, Peter was constrained to aid Alfonso XI of Castile in his successful attack on Algeciras (1344) and his failed attempt on Gibraltar (1349) by defending against a Moroccan counterattack.