sentences:  It was part of the dowry of Agnes of Merania, daughter of Duke Otto I of Andechs-Merania, upon her marriage with the Frederick II of Babenberg, son of Duke Leopold VI of Austria, in 1229.Frederick II thereafter called himself a "dominus Carniole" (Lord of Carniola) and succeeded his father as Duke of Austria and Styria in the following year.In 1248 the title was picked up by Duke Ulrich III of Carinthia, who had married Agnes of Merania after Frederick's death in 1246.