The Third Siege of Gibraltar was mounted between February–June 1333 by a Moorish army under the prince Abd al-Malik Abd al-Wahid of Morocco. The fortified town of Gibraltar had been held by Castile since 1309, when it had been seized from the Moorish Emirate of Granada. The attack on Gibraltar was ordered by the recently crowned Marinid ruler Abu al-Hasan Ali ibn Othman in response to an appeal by the Nasrid ruler Muhammed IV of Granada.