The Serbian Revolution (Serbian: Српска револуција, romanized: 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.