For a fine view over the port , climb up to the 16th-century citadel , built to defend the town on a coast under constant attack from pirates .
The 16th-century citadel was called upon to defend the town from invaders in the 17th century .