Dupnitsa (Bulgarian: Дупница (previously Дубница), sometimes transliterated Dupnica) is a town in southwestern Bulgaria. It is at the foot of the highest mountain in the Balkan Peninsula – the Rila Mountain, and about 65 km south of the capital Sofia. Dupnitsa is the second largest city in Kyustendil Province and in the first half of the 20th century Dupnitsa was bigger than Kyustendil.