In 1229 she married
Frederick of Babenberg, son and heir of Duke
Leopold VI of Austria. Her husband, who was known as "the Quarrelsome", had just divorced his first wife Eudokia Laskarina ("Sophia"), a daughter of the Byzantine emperor
Theodore I Laskaris, due to childlessness. He succeeded his father as Austrian duke in 1230. Based on the dowry of his wife including large Andechs estates in the
March of Carniola and the
Windic March, he also began to call himself a "Lord of Carniola" from 1232. However, Frederick II also divorced Agnes due to childlessness in 1243. The haughty Austrian ruler hurled himself into a fierce border conflict with King
Béla IV of Hungary and was killed in the 1246
Battle of the Leitha River. As he left no surviving children, the male line of the Babenberg dynasty became extinct with him. The inheritance fell to his sister
Margaret and his niece
Gertrude. From 1250 Agnes is documented as consort of
Ulrich of Sponheim, son of Duke
Bernhard of Carinthia. Ulrich could succeed Agnes' late husband as Lord in Carniola and became Carinthian duke upon his father's death in 1256. The couple had two children, who nevertheless died young. Agnes died in 1263 and was buried at
Stična Abbey in the
Windic March (now in
Slovenia). After her second husband's death in 1269, her dowry passed to King
Ottokar II of Bohemia. ==Notes==