The Municipality of HrpeljeâÂÂKozina (; ) is a municipality in the Littoral region of Slovenia. Its seat is the village of Hrpelje.
A major border crossing to Italy is located in the municipality at the village of Krvavi Potok. It connects to Pesek in the Municipality of San Dorligo della Valle (Dolina) near Trieste on the Italian side. It borders Italy and Croatia.
In addition to the municipal seat of Hrpelje, the municipality also includes the following settlements: