{ { Infobox military conflict
|conflict=Serbian Revolution
|partof=
|image=BOJ NA MIŠARU.jpg
|image_size=325px
|caption=Battle of Mišar (1806), painting by Afanasij Šeloumov
|date=First Serbian Uprising:14 February 1804 – 7 October 1813()Hadži-Prodan's rebellion:27 September – 30 December 1814()Second Serbian Uprising:23 April 1815 – 26 July 1817() |place=The Balkans (Central Serbia and partially Bosnia) |territory=The Ottoman Empire loses direct control of the Sanjak of Smederevo |result= First Serbian Uprising Ottoman victory Abolishment of Serbian rebel government Hadži-Prodan's rebellion Ottoman victory Second Serbian Uprising Strategic Serbian diplomatic victory Establishment of the autonomous Principality of Serbia |combatant1=First Serbian Uprising (1804–1813) Supported by: (1807–12) |combatant2=First Serbian Uprising (1804–1813)Dahijas (1804) Ottoman Empire (from 1805)
Pashalik of Yanina
Supported by: |combatant1a=Hadži-Prodan's rebellion (1814) Serbian rebels |combatant2a=Hadži-Prodan's rebellion (1814) Ottoman Empire |combatant1b=Second Serbian Uprising (1815–1817) Serbian rebels |combatant2b=Second Serbian Uprising (1815–1817) Ottoman Empire |commander1= |commander2= { { plainlist| First Serbian Uprising (1804–1813) Mehmed-aga Fočić Aganlija Kučuk-Alija Mula Jusuf Selim III (Sultan; until 1807) Mustafa IV (Sultan; 1807–08) Mahmud II (Sultan; from 1808) Sulejman-paša Skopljak Hurshid Pasha Bekir Pasha Sinan-paša Sijerčić Osman Gradaščević Mehmed-beg Kulenović Ibrahim Bushati Muhtar Pasha Veli Pasha Hadži-Prodan's rebellion (1814) Mahmud II (Sultan) Sulejman-paša Skopljak Second Serbian Uprising (1815–1817) Mahmud II (Sultan) Maraşlı Ali Pasha Sulejman-paša Skopljak Hurshid Pasha Ibrahim-Pasa Osman-beg Seuchesmu Caja-Imšir Kara-Mustafa}} |casualties= }}
The Serbian Revolution' ( / Srpska revolucija) was a national uprising and constitutional change in Serbia that took place between 1804 and 1835, during which this territory evolved from an Ottoman province into a rebel territory, a constitutional monarchy, and modern Serbia. In 1804, the Ottoman Janissary decided to execute all prominent nobles throughout Central Serbia, a move known as the Slaughter of the Knezes. The heads of the murdered Serbian nobles were put on public display in the central square to serve as an example to those who might plot against Ottoman rule. The event triggered the start of the Serbian Revolution aimed at putting an end to the 370 years of Ottoman occupation. The first part of the period, from 1804 to 1817, was marked by a violent struggle for independence from the Ottoman Empire with two armed uprisings taking place, ending with a ceasefire. The later period (1817–1835) witnessed a peaceful consolidation of political power of the increasingly autonomous Serbia, culminating in the recognition of the right to hereditary rule by Serbian princes in 1830 and 1833 and the territorial expansion of the young monarchy. The adoption of the first written Constitution in 1835 abolished feudalism and serfdom, and made the country suzerain. The term Serbian Revolution was coined by a German academic historiographer, Leopold von Ranke, in his book Die Serbische Revolution, published in 1829. These events marked the foundation of modern Serbia.