After Austria-Hungary occupied Bosnia and Herzegovina following the 1878 Treaty of Berlin, the Military Frontier was abolished. The Croatian and Slavonian sectors of the Frontier returned to Croatia in 1881, under provisions of the Croatian–Hungarian Settlement. Renewed efforts to reform Austria-Hungary, entailing federalisation with Croatia as a federal unit, were stopped by the advent of World War I.