 The Spanish built an arsenal where the Grand Casemates barracks now stand, and the Giralda tower where the North Bastion would later stand.The tower was built on Ferdinand's orders to protect the dockyard, although improvements to other defenses were neglected.In 1333 the Moors retook Gibraltar after a lengthy siege, and the Spanish under Alfonso XI of Castile were unable to recapture it.