Chiavari Castle was built after the convention of perpetual league signed on 1138 between Genoa and Fieschi. The construction started on 1140 and finished probably on 1147. It is one of the first castle erected in the Italian Riviera, over a hill dominating and defending a seafaring village, called Clavai, today Chiavari.
In 1172 the castle was besieged by Opizzone Malaspina, while in 1278 it fell into the hands of Moruello and Alberto Fieschi hands, allied for the conquest of the castle, but just for eight days.
During the first half of the 14th century it was rebuilt several times because of violent battles between the Guelfs and Ghibellines and in that century the village was further fortified by a heavy surrounding wall accessible through seven doors and defended by fourteen towers. Nowadays it is quite easy to see the ruins of the ancient wall of the ancient village of Chiavari.
References:The Walls of Constantinople are a series of defensive stone walls that have surrounded and protected the city of Constantinople (today Istanbul) since its founding as the new capital of the Roman Empire by Constantine the Great. With numerous additions and modifications during their history, they were the last great fortification system of antiquity, and one of the most complex and elaborate systems ever built. They were also the largest and strongest fortification in both the ancient and medieval world.
Initially built by Constantine the Great, the walls surrounded the new city on all sides, protecting it against attack from both sea and land. As the city grew, the famous double line of the Theodosian Walls was built in the 5th century. Although the other sections of the walls were less elaborate, they were, when well-manned, almost impregnable for any medieval besieger.