Croats of Bosnia and Herzegovina transferred to the Austro-Hungarian Empire. Even after the fall of the Ottoman rule, the population of Bosnia and Herzegovina was divided. In the Habsburg Kingdom of Croatia, Croatian politicians strived for the unification of the Kingdom of Dalmatia with Croatia. Another ambition of Croatian politicians was to incorporate the Condominium of Bosnia and Herzegovina into the Kingdom of Croatia. The Habsburg Governor Béni Kállay resorted to co-opt religious institutions. Soon, the Austrian Emperor gained support to name Orthodox metropolitans and Catholic bishops and to choose Muslim hierarchy. The first Catholic archbishop was Josip Stadler. Both apostolic vicarates, Bosnian and Herzegovinian,
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