 Golubac was held by the Habsburg Monarchy between 1688 and 1690 and 1718 and 1739 . Serb rebels controlled it during Kočina Krajina in 1788 – 91 , and again from 1804 – 13 , during the First Serbian Uprising . Afterwards , it fell back under Ottoman control until 1867 when it , along with Kalemegdan and other towns in Serbia , was given to Knez Mihailo of Serbia . 
