This ancient castle and wall was built to defend the town against pirates and other invaders