The Venetians had an issue with invaders coming into their towns.
The Venetians fortified their main towns Naxos Town and Antiparos Town are wonderful examples of this creating labyrinths of narrow alleys and cul-de-sacs that were designed to confuse and to demoralize invaders.