It then belonged to the Imperial March of Istria, which had originally been under the suzerainty of the newly established Duchy of Carinthia in 976, but separated together with the March of Carniola in 1040.