 The first known record of Golubac is in Hungarian sources from 1335 , when it was occupied by Hungarian military . Sometime between 1345 and 1355 , Serbian Tsar Stefan Dušan toured the Braničevo region , which was part of Serbia . He also visited Golubac , which was under the command of Castellan Toma , Voivode of Transylvania . After Dušan 's death , the House of Rastislalić gained influence in Braničevo , later winning independence . According to Serbian chroniclers , Knez Lazar evicted the last Rastislalić feudal lord , Radič Branković , in 1379 , then presented outlying villages to monasteries in Wallachia . By the time of the Battle of Kosovo in 1389 , Golubac was held by Serbia . It is unclear when or how it changed hands , though one source puts it later than 1382 . After the battle , the fortress was lost to Sultan Bayezid I , marking the first possession by the Ottoman Empire . In 1391 , Golubac switched hands twice . Hungarian Timişoaran Comes Péter Perényi won it , but shortly afterwards lost it again to the Turks . Later , it returned once again to the Kingdom of Hungary . 
