 It defended the northern flank of the city from attack.At the base of the lighthouse was a watchtower from the Muslim period.The lighthouse has an iron structure designed by Rafael de la Cerda in 1908 and is the second electric powered lighthouse in Spain.