History of modern Serbia or modern history of Serbia covers the history of Serbia since national awakening in the early 19th century from the Ottoman Empire, then Yugoslavia, to the present day Republic of Serbia. The era follows the early modern history of Serbia.The history of modern Serbia began with the fight for liberation from the Ottoman occupation in 1804 (Serbian Revolution). The establishment of modern Serbia was marked by the hard-fought autonomy from the Ottoman Empire in the First Serbian Uprising in 1804 and the Second Serbian Uprising in 1815, though Turkish troops continued to garrison the capital, Belgrade, until 1867. Those revolutions revived the Serbian pride and gave them hope that their Empire might come into reality again. In 1829 Greece was given complete independence and Serbia was given its autonomy, which made her semi-independent from Turkey. Serbia's first constitution, the Sretenje or Candlemas constitution, was adopted in 1835, then replaced by the Constitution of 1838.