Significant parts of the city walls of Piran remain well-preserved. Piran's three walls were built in response to the city's expansion. The first wall was built in the 7th century, separating the town into four streets. The first wall can be seen in the old part of the town. The wall was moved south-west when new streets were built. The fortification wall, which was built along the southern coast of the town, hasn't changed much since it was first built.
In the final phases of expansion between 1470 and 1538, the second fortification wall was built to protect the peninsula during construction. It protected the MarÄana quarter. The biggest part was built when the use of gunpowder became frequent.
The third wall is almost completely intact. Its northern part is accessible while the southern wall's floors and stairs are missing or are under reconstruction. Between them a gap opened where the wall collapsed. A small portion of the third wall is next to the rectory, facing north. A tower viewer is located in one of the towers.Seven city entrances or gates remain preserved.
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.