The offensive objectives the Serbian army sought to accomplish were overly ambitious for such a force, and they suffered a number of defeats that resulted from poor planning and chronically being spread too thin.
The Serbs formed five corps and attacked Ottoman troops to the south, taking the cities of Niš, Pirot, Leskovac and Vranje one after another.
In the same time, political instability in Turkish capital culminated on 30 May (1876) when sultan Abdülaziz was deposed and replaced with Murad V. Taking advantage of the opportunity, the two semi-independent principalities of Serbia and Montenegro opted for independence and declared war on the Ottoman Empire on 18 June 1876.
[7] The main Serbian army under Commander-in-Chief Mikhail Chernyayev, a Russian general, concentrated at the Southern fortress of Aleksinac.
In the northeast, Milojko Lešjanin based at Zaječar commanded an infantry division (6,000) with cavalry support and the Bulgarian Legion (2,000).
[citation needed] The main Ottoman army was based at Sofia under Abdul Kerim with 50,000 men plus irregulars (bashi-bazouk) and Circassians.
The initial Serbian military plan was to defend Niš and attack Sofia with the main army under Chernyayev.
In the north-east, general Milojko Lešjanin was defeated near Kior after failing to hold the Ottoman advance over the Timok river.
The Serbian army's main advance in the south appeared to initially meet with success when it moved quickly down the Nišava valley and captured the important heights at Babina Glava, north of Pirot.
Thanks to Abdul Kerim's indecisiveness and the arrival of Horvatović's fresh forces, a new Serbian defensive line was created at Djunis.
Following this string of setbacks and defeats, Serbia petitioned the European powers to mediate a diplomatic solution to the war.
A joint ultimatum from the European powers forced the Ottoman Empire into accepting a one-month truce with Serbia, during which peace negotiations were held.
On 31 October 1876, with the situation becoming dire and Serbian forces about to collapse, Russia mobilized its army and threatened to declare war on the Ottoman Empire if they did not sign a truce with Serbia and renew the peace negotiations within forty-eight hours.
By early 1878, the Royal Serbian Army had captured most of the South Morava basin, reaching as far as Preševo and Vitina.
Being aware of all that, 50 most prominent citizens of Belgrade decided to establish the "Society for the bringing up and protection of children", in the Kasina Hotel on Terazije Square, in 1879.