In the Early Middle Ages, Antivari () remained a subject of the Byzantine Empire, as part of the Theme of Dyrrhacium. Stefan Vojislav, incorporated it into his state in 1040, and his family till 1090, after which it became part of the medieval Serbian state culminating in the Empire under the Nemanjić dynasty. It was briefly annexed by the Republic of Venice. About 1360, the Balšić family of Zeta gained control of Bar as the Serbian Empire crumbled, after which Louis I of Hungary controlled Bar briefly before it was annexed by Venice again in 1443. Bar remained under the rule of Venice until it was taken by the Ottoman Empire in 1571 as part of the Ottoman expansion into Europe.