A campaign was organized to establish Austro-Hungarian rule in Bosnia and Herzegovina on 29 July 1878 which saw mostly combat against local resistance fighters supported by the Ottoman Empire.The Austro-Hungarian command did not even count on significant resistance and could easily underestimate the combat situation, as happened during one of the first clashes like the Battle of Maglaj,[2] where part of the Austrian cavalry troops fell into a trap.Infantry Division under the command of Duke William of Württemberg, advanced towards the fortress town of Jajce on the Vrbas River, controlled by Ottoman-supported Bosnian rebels.Due to surprise and probably the complicated mountainous terrain, the Austro-Hungarian army achieved victory[4] at the cost of heavy losses, reported to be approximately six hundred dead.The subsequent presence of Austro-Hungarian power in Bosnia and Herzegovina persisted through the so-called Bosnian Crisis until the end of World War I, including the crucial assassination of Archduke Franz Ferdinand of Austria in Sarajevo on June 28, 1914.