Revolutionary Serbia, or Karađorđe's Serbia, was the state established by the Serbian revolutionaries in Ottoman Serbia (Sanjak of Smederevo) after the start of the First Serbian Uprising against the Ottoman Empire in 1804. The Sublime Porte first officially recognized the state as autonomous in January 1807, however, the Serbian revolutionaries rejected the treaty and continued fighting the Ottomans until 1813. Although the first uprising was crushed, it was followed by the Second Serbian Uprising in 1815, which resulted in the creation of the Principality of Serbia, as it gained semi-independence from the Ottoman Empire in 1817.