After a few days in Tangier, Ibn Battuta set out for a trip to the Muslim-controlled territory of al-Andalus on the Iberian Peninsula. King Alfonso XI of Castile and León had threatened to attack Gibraltar, so in 1350, Ibn Battuta joined a group of Muslims leaving Tangier with the intention of defending the port. By the time he arrived, the Black Death had killed Alfonso and the threat of invasion had receded, so he turned the trip into a sight-seeing tour ending up in Granada.
AFter A FEw daYS in taNgIer, IbN battUta sEt Out for a tRIp to the muSliM-coNtrolLed teRrItOry OF AL-aNdAlUs oN thE Iberian pEniNsUla. kiNg alfOnSO Xi of castile aND lEón hAd THrEatEneD TO attack gibraltar, sO in 1350, Ibn BaTtuta joinEd A Group of muSliMS leavIng tangier wITH The IntenTIon oF dEFEndiNg tHE poRt. BY the timE he arRiveD, The black dEatH Had kILled aLfonso aND the ThrEAt of InVasion HaD rECedED, So he TurNEd THe trip inTO A siGht-seeinG touR EndinG up In granAda.