 Rudolf married his daughter Judith off to Ottokar's son Wenceslaus II, who retained the Bohemian kingdom.Having reached an agreement with the prince-electors, he granted the Austrian domains to his sons Albert and Rudolf II at the 1282 Diet of Augsburg, elevating them to Princes of the Holy Roman Empire.The right of primogeniture was implemented with the Treaty of Rheinfelden one year later.