For a short time, the Babenbergs came to be one of the most influential ruling families in the Empire, peaking under the reign of Leopold V the Virtous (1177–1194) and Leopold VI the Glorious (1194–1230). In 1186, they signed the Georgenberg Pact with the first and last Otakar duke Ottokar IV of Styria and, upon his death in 1192, acquired the adjacent Styrian lands in the south, which were ruled with Austria in personal union until 1918. They also expanded their territory into the old Bavarian lands west of the Enns River, along the Traun to the city of Linz, the future capital of Upper Austria.
The Babenbergs rose to prominence as one of the most influential ruling families in the Empire during the reigns of Leopold V the Virtous and Leopold VI the Glorious (1177–1230). In 1186, they formed a pact with Ottokar IV of Styria. After his death in 1192, the Babenbergs gained control of the adjacent Styrian lands, which were ruled jointly with Austria until 1918. They also expanded their territory into the former Bavarian lands west of the Enns River, reaching Linz, the future capital of Upper Austria.