The feudal lord Arnust of Begur built his castle on a coastal hilltop in the 11th century, and to this day it remains the centerpiece of the medieval town that rose up around it. The castle was sold to the city in 1604; it has played a key role in a number of conflicts since then, including the Spanish War of Independence at the beginning of the 19th century. Visitors can only explore the outside of the fortress, which does, however, offer spectacular views of the coast.