Settled in ancient times, the Central European land that is now Austria was occupied in pre-Roman times by various Celtic tribes. The Celtic kingdom of Noricum was later claimed by the Roman Empire and made a province. Present day Petronell-Carnuntum in Eastern Austria was an important army camp turned capital city in what became known as the Upper Pannonia province. Fifty thousand people called Carnuntum home for nearly 400 years.
After the fall of the Roman Empire the area was invaded by Bavarians, Slavs and Avars. The Slavic tribe of the Carantanians migrated into the Alps and established the realm of Carantania, which covered much of eastern and central Austrian territory. Charlemagne conquered the area in 788 AD, encouraged colonisation and introduced Christianity. As part of Eastern Francia, the core areas that now encompass Austria were bequeathed to the house of Babenberg. The area was known as the marchia Orientalis and was given to Leopold of Babenberg in 976.
The first record showing the name Austria is from 996 where it is written as Ostarrîchi, referring to the territory of the Babenberg March. In 1156 the Privilegium Minus elevated Austria to the status of a duchy. In 1192, the Babenbergs also acquired the Duchy of Styria. With the death of Frederick II in 1246, the line of the Babenbergs went extinct.
As a result Ottokar II of Bohemia effectively assumed control of the duchies of Austria, Styria and Carinthia. His reign came to an end with his defeat at Dürnkrut at the hands of Rudolph I of Germany in 1278. Thereafter, until World War I, Austria's history was largely that of its ruling dynasty, the Habsburgs.
In the 14th and 15th centuries, the Habsburgs began to accumulate other provinces in the vicinity of the Duchy of Austria. In 1438 Duke Albert V of Austria was chosen as the successor to his father-in-law, Emperor Sigismund. Although Albert himself only reigned for a year, henceforth every emperor of the Holy Roman