The Piran town walls once surrounded the town, and parts of them survive to this day. They consist of three walls, built as the town expanded.
Photo: Zlerman, CC BY-SA 3.0, Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Walls_of_Piran3.jpg)