Austro-Hungarian rule in Bosnia and Herzegovina power over the Catholic Church in Bosnia and Herzegovina, the Emperor established the cathedral in Sarajevo and named Archbishop Dr. Josip Štadler as its head. Just before the occupation of Bosnia and Herzegovina, the Croatian Sabor asked the Emperor to alter the situation in Bosnia and Herzegovina so it could be unified with the Kingdom of Croatia-Slavonia and the Kingdom of Dalmatia. The Emperor refused to accept this demand and dismissed the Sabor. This was done as the Austrian-Hungarian authorities had a plan to isolate Bosnia and Herzegovina from its neighbouring Slavic countries, Croatia and Serbia, and to halt the
Croats of Bosnia and Herzegovina Austria, respectively King of Croatia. During the revolt, for the first time Bosnian Croats used the flag of Croatia. Soon after, the Orthodox population in East Herzegovina also revolted, which led to the Herzegovina Uprising. The Ottoman authorities were unable to defeat the rebels, so Serbia and Montenegro took advantage of this weakness and attacked the Ottoman Empire in 1876, soon after the Russian Empire did the same. The Turks lost the war in 1878, and this resulted in over 150,000 refugees who went to Croatia. After the Congress of Berlin was held in same year, Bosnia and Herzegovina was