Dupnitsa, or Dupnica (Bulgarian: Дупница, Bulgarian pronunciation: /ˈdupnit͡sɐ/), is a town in Western Bulgaria. It is at the foot of the highest mountains in the Balkan Peninsula – the Rila Mountains, and about south of the capital Sofia. Dupnitsa is the second largest town in Kyustendil Province.