Austria was initially a border area (March) of the tribal duchy of Bavaria.

An excerpt from the article 31 facts about Austria

In the 10th century, the margravate was ruled by the Babenberg family (a family of margraves and princes of Frankish-Bavarian origin that ruled Austria from 976 to 1246). The Babenbergs initially had their residence in Pöchlarn and later in Melk. During their reign, the country was colonized, and monasteries and abbeys were founded (e.g. Klosterneuburg). In the first half of the 12th century. Henry Jasomirgott gave Austria the status of a principality (within the Holy Roman Empire), and Vienna - his seat, city - residence. After the expiration of the Babenberg dynasty, the Habsburg dynasty took power in Austria.