Koper is a city in southwestern Slovenia, with the other Slovenian coastal towns Ankaran, Izola, Piran, and Portorož, situated along the country's 47-kilometre (29-mile) coastline, in the Istrian Region, approximately five kilometres (3.1 miles) from its border with Italy. Having a unique ecology and biodiversity, it is considered an important national natural resource. The city's Port of Koper is the major contributor to the economy of the eponymous city municipality. With only one percent of Slovenia having a coastline, the influence that the Port of Koper also has on tourism was a factor in Ankaran deciding to leave the municipality in a referendum in 2011 to establish its own. The city is a destination on a number of Mediterranean cruising lines. In 2016, the city expects 65 cruise ship arrivals with the season spanning from March to December. Koper is the main urban centre of the Slovenian Istria, with a population of about 25,000.
The city of Koper is officially bilingual, with both Slovene and Italian as official languages. Sights in Koper include the 15th-century Praetorian Palace and Loggia in Venetian Gothic style, the 12th-century Carmine Rotunda church, and the Cathedral of St Nazarius, with its 14th-century tower.
Koper is also one of the main road entry points into Slovenia from Italy, which lies to the north of the municipality. The main motorway crossing is at Spodnje Škofije to the north of the city of Koper. The motorway continues into Rabuiese and Trieste. Koper also has a rail connection with the capital city, Ljubljana. On the coast, there is a crossing at Lazaret into Lazaretto in Muggia municipality in Trieste province. The Italian border crossing is known as San Bartolomeo.