Beirut was twice occupied during the Russo-Turkish War of 1768–1774 by squadrons of the Imperial Russian Navy's Mediterranean Fleet, first in June 1772 and second from October 1773 to early 1774, as part of its Levant campaign. Russia's main objective in this campaign was to assist local forces led by Egypt's autonomous ruler, Ali Bey al-Kabir, who was in open rebellion against the Ottoman Empire.