Though Bosnia and Herzegovina were still nominally under the control of the Ottoman Sultan in 1908, Austria-Hungary had administered the provinces since the Congress of Berlin in 1878, when the great powers of Europe awarded the Dual Monarchy the right to occupy the two provinces, with the legal title to remain with Turkey.