 The Ottoman Empire retained control of Golubac throughout its occupation of the Serbian Despotate . After years of fighting , which resulted in the Hungarian army expelling the Ottomans from Serbia , the Peace of Szeged restored the Despotate late in the summer of 1444 . Included in the redefined territory , after much discussion , was Golubac Fortress . However , the Turks once again conquered it after the death of Đurađ Branković in 1456 . In 1458 , Matthias Corvinus of Hungary regained the fortress , but lost it to Mehmed II that same year . 
