In 1368 the Habsburg brothers purchased the Swabian city of Freiburg. But their attempt to gain control over the Adriatic port of Trieste failed in an armed conflict with the Republic of Venice in 1369/70. Trieste was not won until 1382, when the citizens sought protection from Venice by subjecting themselves to Austrian rule. In 1374 the Austrian dukes inherited large territories in the Windic March and Istria from the late Albert III, Count of Gorizia, which they attached to the Duchy of Carniola. The next year they acquired the Swabian lordship of Feldkirch from the Counts of Montfort, the nucleus of the Habsburg possessions in later Vorarlberg.