However Frederick was killed in the Battle of the Leitha River against the Hungarians, and had no surviving children. Thus the Babenburg dynasty became extinct in 1246.