الدولة المرينية
During the Middle Ages, Gibraltar was part of the Moorish Taifa of Málaga in Al-Andalus. It was ruled by Abdul Malik, son of the Marinid dynasty, between 1333 and 1340. After an unsuccessful siege led by Alfonso XI of Castile during the Reconquista period, Emir Isa Ibn al-Hassam proclaimed himself "King of Gibraltar and its lands" in 1355. The kingship remained in Muslim hands for the next century.