Emirate of Granada
Gibraltar returned to the control of the Moorish Emirate of Granada after the occupation by Castile in 1309–1333 was ended by the successful third siege of Gibraltar.