 Around 1254, Carniola lost its marcher privileges.When Duke Frederick II of Austria died without male heirs in 1246, Carniola was given to the last Sponheim duke Ulric III of Carinthia, a cousin of the patriarch who married Frederick's widow Agnes.Ulric developed Carniola, endowing many lands to the church and establishing a mint at Kostanjevica.