Piran (Italian: Pirano) is a town in the Municipality of Piran in southwestern Slovenia on the Gulf of Piran on the Adriatic Sea. It is one of the three major towns of Slovenian Istria. The town has much medieval architecture, with narrow streets and compact houses. Piran is the administrative centre of the local area and one of Slovenia's major tourist attractions. Until the mid 20th century Italian was the dominant language, but was replaced by Slovene as populations moved.