The independence of the Principality of Montenegro from the Ottoman Empire was recognized at the congress of Berlin in 1878. However, the Montenegrin nation has been de facto independent since 1711 (officially accepted by the Tsardom of Russia by the order of Tsar Petr I Alexeyevich-Romanov. In the period 1795–1798, Montenegro once again claimed independence after the Battle of Krusi. In 1806, it was recognized as a power fighting against Napoleon, meaning that it had a fully mobilized and supplied army (by Russia, through Admiral Dmitry Senyavin at the Bay of Kotor).