In 1309, Castillian troops under Ferdinand IV of Castile captured Gibraltar, then known as the Medinat al-Fath (City of Victory), from the Muslim-ruled Emirate of Granada.[1] Its fortifications were repaired and improved by the Castillians.[2] In 1315 the Granadans attempted to retake Gibraltar in the brief and unsuccessful Second Siege of Gibraltar.[3]