On the heels of the Great Balkan Crisis, Austro-Hungarian forces occupied Bosnia and Herzegovina in August 1878, and Austria-Hungary eventually annexed Bosnia and Herzegovina in October 1908 as a common holding under the control of the finance ministry, rather than attaching it to either Austria or Hungary. The occupation of Bosnia-Herzegovina was a step taken in response to Russian advances into Bessarabia. Unable to mediate between the Ottoman and the Russian Empires over the control of Serbia, Austria–Hungary declared neutrality when the conflict between the empires escalated into war. To counter Russian and French interests in Europe, an alliance was concluded with Germany in October 1879 and with Italy in May 1882.