Hayreddin Barbarossa
However, the defenses were neglected, particularly those to the south. The next threat to Gibraltar came from this direction, with a devastating attack in 1540 by one of the captains of the Turkish corsair Hayreddin Barbarossa.