Gorizia and Gradisca
Mahnič was born in Kobdilj near Štanjel in the Austrian County of Gorizia and Gradisca (in today's Slovenia). He finished theological studies in Vienna and then worked as a priest and a teacher in Gorizia. During this period, he became actively involved in the Slovene political life, criticising the liberal Catholic current within the Slovene national movement.