through the Suez Canal. When Russia defeated Turkey in a war the resulting Treaty of San Stefano was seen in Austria as much too favourable for Russia and its Orthodox-Slavic goals. The Congress of Berlin rolled back the Russian victory by partitioning the large Bulgarian state that Russia had carved out of Ottoman territory and denying any part of Bulgaria full independence from the Ottomans. The Congress of Berlin in 1878 let Austria occupy (but not annex) the province of Bosnia and Herzegovina, a predominantly Slavic area. Austria occupied Bosnia and Herzegovina as a way of gaining power in the Balkans. Serbia, Montenegro and Romania became fully independent. Nonetheless, the Balkans remained a site of political unrest with teeming ambition for independence and great power rivalries. At the Congress of Berlin in 1878 Gyula Andrássy (Minister of Foreign Affairs) managed to force Russia to retreat from further demands in the Balkans. As a result, Greater Bulgaria was broken up and Serbian independence was guaranteed. In that year, with Britain's support, Austria–Hungary stationed troops in Bosnia to prevent the Russians from expanding into nearby Serbia. In another measure to keep the Russians out of the Balkans, Austria–Hungary formed an alliance, the Mediterranean Entente, with Britain and Italy in 1887 and concluded mutual defence pacts with Germany in 1879 and Romania in 1883 against a possible Russian attack. Following the Congress of Berlin the European powers attempted to guarantee stability through a complex series of alliances and treaties. Anxious about Balkan instability and Russian aggression, and to counter French interests in Europe, Austria–Hungary forged a defensive alliance with Germany in October 1879 and in May 1882. In October 1882 Italy joined this partnership in the Triple Alliance largely because of Italy's imperial rivalries with France. Tensions between Russia and Austria–Hungary remained high, so Bismarck replaced the League of the Three Emperors with the Reinsurance Treaty with Russia to keep the Habsburgs from recklessly starting a war over Pan-Slavism. The Sandžak-Raška / Novibazar region was under Austro-Hungarian occupation between 1878 and 1909, when it was returned to the Ottoman Empire, before being ultimately divided between kingdoms of Montenegro and Serbia. On the heels of the Great Balkan Crisis, Austro-Hungarian forces occupied Bosnia and Herzegovina in August 1878 and the monarchy eventually annexed Bosnia and Herzegovina in October 1908 as a common holding of Cisleithania and Transleithania under the control of the Imperial &