During the Russo-Turkish war of 1877–1878, in February 1878 the Russian army had almost reached the Ottoman capital but, scared the city might fall, the British sent a fleet of battleships to intimidate Russia from entering the Ottoman capital. Under pressure from the British fleet to negotiate on the outcome of the war, Russia agreed a settlement under the Treaty of San Stefano on March 3, by which the Ottoman Empire recognized the independence of its former provinces Romania, Serbia and Montenegro and autonomy of Bulgaria. The Congress of Berlin also allowed Austria to occupy Bosnia and Herzegovina and Great Britain to take over Cyprus.