The oldest and largest of San Marino's castles, Torre Guaita dates from the 11th century. It was still being used as a prison as recently as 1975.