The Municipality of Hrpelje-Kozina (pronounced [xəɾˈpeːljɛ kɔˈziːna] ; Slovene: Občina Hrpelje - Kozina) is a municipality in the Littoral region of Slovenia. Its main settlements are Hrpelje and Kozina.
A major border crossing to Italy is located in the municipality at the village of Krvavi Potok. It connects to Pese di Grozzana in the Municipality of San Dorligo della Valle near Trieste on the Italian side.