After the 1912 Parliamentary Election, a Caretaker Government had to be formed quickly because of the sudden death of the Prime Minister Milovan Milovanović.
After one year of tension, Pašić dismissed the military administrator of Old Serbia and scheduled new elections for 1914, but the outbreak of World War I prevented it.
On July 5 1914, things changed as old King Peter I relinquished his duties to the heir apparent Alexander, making him his regent.
On 17 September 1914, Pašić and Albanian leader Essad Pasha Toptani signed in Niš the secret Treaty of Serbian-Albanian Alliance.
Also treaty envisaged building of the rail-road to Durrës, a financial and military support of Kingdom of Serbia to Essad Pasha's position of Albanian ruler and drawing of the demarcation by special Serbo-Albanian commission.