After the Ottoman Empire had allied itself with Napoleon in late 1806, and was attacked by Russia and Britain, it sought to meet the demands of the Serbian rebels under Karađorđe. Russian diplomat and agent Konstantin Rodofinikin initially proposed that Serbia becomes a protectorate of the Russian Empire and that Russian garrisons be stationed in Serbia as well as a high representative which would oversee the affairs in the country. Karađorđe refused the proposition claiming that it would turn Serbia into a Russian province. At the same time, the Russians offered the Serbs aid and cooperation. The Serbs accepted the Russians′ offer over autonomy under the Ottomans (as set by the "Ičko's Peace") and signed an alliance with the Russian Empire in July 1807: Karađorđe was to receive arms, and military and medical missions; nevertheless the terms of Russo-Turkish settlement agreed in May 1812 effectively provided for Turkish re-occupation of Serbia, and the First Serbian Uprising was definitively suppressed in October 1813. The Second Serbian Uprising (April 1815 – July 1817) achieved Serbian autonomy within the Ottoman Empire, which was internationally recognised through the Russo-Turkish Akkerman Convention (October 1826, solemnly announced in the cathedral in Kragujevac in the presence of Prince Miloš Obrenović) and the Treaty of Adrianople (September 1829). Serbia was thus put under Russian protection, although Russia was unable to exert control as it did in Wallachia and Moldavia, territories also dealt with in the Akkerman Convention. Serbian autonomy was briefly abolished by the Ottoman sultan in 1828, then re-granted in 1829. Russian protection was recognized until abolition thereof in 1856, after the Russian defeat in the Crimean War.