His father Stevan Nedeljković, born in Pirot (hence his byname), was a Revolutionary veteran and srez chief of Knjaževac.
Piroćanac was elected Minister of Foreign Affairs in the conservative-liberal alliance cabinet led by Jovan Marinović (November 25, 1874 to January 22, 1875).
Nevertheless, Mijatović provoked another scandal, during the bankruptcy of l’Union Générale from Paris, by granting them consent to realize a set of state bonds for the railway loan.
[2] Austrian mediation turned to be quite helpful and Prime Minister Piroćanac, in order to appease the situation, instead of an extensive financial report, presented to the National Assembly a draft law on the proclamation of the Kingdom of Serbia, with Prince Milan Obrenović as its new King (the first Serbian king since the Middle Ages), a proposal which was greeted with joy and approval by the deputies.
Facing one crisis after another, Prime Minister Piroćanac, lacking the support of Prince, later King, Milan, had no room left to prepare a new, more liberal constitution that would replace the old one of 1869.
The upper chamber, consisting of intellectuals appointed by the King would, as he proposed, control the irresponsible and uneducated peasant, mostly Radical, deputies.
With other laws promulgated, in particular on free elections, local autonomy and taxation, the Piroćanac government made possible the accelerated modernization and Europenisation of the predominantly patriarchal society of Serbia, therefore being a crucial stage of the country's development, both economic and political.