Question: In what year was the Duchy of Styria acquired by the Babenbergs?
About the article "Austria", section "History".

Candidate passages:
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.
Carnuntum was home for 50,000 people for nearly 400 years.
After the fall of the Roman Empire the area was invaded by Bavarians, Slavs and Avars.
Charlemagne conquered the area in AD 788, 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 was extinguished.
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.
The House of Babenberg was the ruling noble family of Austria from 976 to 1246.
Originally from Bamberg in Franconia in present-day Bavaria, the Babenbergs were counts, margraves, and dukes in the Danube region of present-day Upper Austria, Lower Austria, and Styria. 
It was created by Emperor Frederick Barbarossa in 1180 when he raised the March of Styria to a duchy of equal rank with neighbouring Carinthia and Bavaria, after the fall of the Bavarian duke Henry the Lion earlier that year.
Margrave Ottokar IV thereby became the first Duke of Styria and also the last of the ancient Otakar dynasty.
As Ottokar had no issue, he in 1186 signed the Georgenberg Pact with the mighty House of Babenberg, rulers of Austria since 976, after which both duchies should in perpetuity be ruled in personal union.
Upon his death in 1192, Styria as stipulated fell to the Babenberg duke Leopold V of Austria.
The Austrian Babenbergs became extinct in 1246, when Duke Frederick II the Quarrelsome was killed in battle against King Béla IV of Hungary.
Styria, actually a ceased Imperial fief, due to the lack of a central authority after the deposition of Emperor Frederick II of Hohenstaufen evolved into a matter of dispute among the neighbouring estates.
It passed quickly through the hands of Hungary in 1254, until the Bohemian king Ottokar II Přemysl conquered it, being victorious at the 1260 Battle of Kressenbrunn.
As King Ottokar II had married the last duke's sister Margaret of Babenberg he laid claim to both Austria and Styria, which however met with strong opposition by the elected German king Rudolph of Habsburg, who now recalled the duchies as reverted fiefs.
Rudolph finally defeated Ottokar at the 1278 Battle on the Marchfeld, seized Austria and Styria and granted them to his sons Albert I and Rudolf II.
The House of Habsburg provided Styria with dukes of their lineage ever since.
It however was separated from Austria by the 1379 Treaty of Neuberg, after which Styria, Carinthia and Carniola formed the Inner Austrian territory ruled by the descendants of Leopold III of Habsburg of the Leopoldian line, who took their residence at Graz.
In 1456 they could significantly enlarge the Styrian territory by acquisition of the comital Celje estates in Lower Styria.
Both duchies were again ruled in personal union, when Leopold's grandson Frederick V inherited Austria in 1457.
In 1496 Frederick's son Maximilian I signed an order expelling all Jews from Styria, who were not allowed to return to Graz until 1856.
In 1512 the duchy joined the Empire's Austrian Circle.
A second Inner Austrian cadet branch of the Habsburgs ruled over Styria from 1564.
Under Archduke Charles II of Inner Austria, Graz became a centre of the Counter-Reformation, expedited by the Jesuits at the University of Graz established in 1585 and continued under Charles' son Archduke Ferdinand II of Habsburg, who became sole rule of all Habsburg hereditary lands and Holy Roman Emperor in 1619.
The Protestant population was expelled, including the astronomer Johannes Kepler in 1600.
Meanwhile at the time of the Ottoman invasions in the 16th and 17th centuries after the 1526 Battle of Mohács, the land suffered severely and was depopulated.
The Turks made incursions into Styria nearly twenty times; churches, monasteries, cities, and villages were destroyed and plundered, while the population was either killed or carried away into slavery.
Styria remained a part of the Habsburg Monarchy and from 1804 belonged to the Austrian Empire.
The development of the duchy was decisively promoted by Archduke John of Austria, younger brother of Emperor Francis I of Habsburg, who in 1811 founded the "Joanneum", predecessor of the Graz University of Technology, and the University of Leoben in 1840.
He also forwarded the construction of the Semmering railway to Mürzzuschlag and the Austrian Southern Railway line from Vienna to Trieste completed in 1857, which boosted the Styrian economy.
In the course of the Austro-Hungarian Compromise of 1867 ("Ausgleich"), the duchy was assigned as a crown land for the Cisleithanian part of the Austro-Hungarian Monarchy, while along with the rise of nationalism the conflict between the German and Slovene population intensified.
On the collapse of Austria-Hungary in the aftermath of World War I, the rump state of German Austria claimed all Cisleithanian Austria with a significant German-speaking population including large parts of the Styrian duchy, while the Slovene Lower Styrian part joined the State of Slovenes, Croats, and Serbs.
Armed conflicts arose especially around the multilingual town of Maribor, until by the 1919 Treaty of St Germain the former duchy was partitioned broadly along ethnic lines, with two thirds of its territory (then called Upper Styria) including the ducal capital of Graz remaining with the Federal State of Austria, and the southern third of Lower Styria with Maribor passing to the Kingdom of Yugoslavia, eventually becoming a part of modern Slovenia. 
The March of Styria () was originally broken off the Duchy of Carinthia before 970 as a buffer zone against the Magyars.
Originally it was known as the Carantanian march ("marchia Carantana"), after the former Slavic principality of Carantania, a predecessor of the Carinthian duchy.
During the 11th century it evolved to be called Styria, so named for the town of Steyr, then the residence of the margraves.
The area was formerly part of the larger March of Carinthia, itself a frontier march of the Duchy of Bavaria.
In 976 Emperor Otto II separated Carinthia from the Bavarian stem duchy and raised it to the status of a duchy in its own right.
The adjacent territory in the east up to the Mur, Mürz and Enns rivers, that had been annexed by King Otto I after the 955 Battle of Lechfeld, was similarly converted into the "marchia Carantana" of the new Carinthian duchy.
The first margraves of Styria appear in the early 11th century.
The dynasty ruling from 1056 was called the Otakars.
Margrave Leopold the Strong (1122–1129) and his son Ottokar III (1129–1164) acquired large territories along the Savinja river down to the Windic March and moved their residence to Graz.
In 1180, the march was converted into the Duchy of Styria. 
Frederick II, Leopold VI's son by Theodora Angelina, succeeded his father as duke upon the elder man's death in 1230.
Frederick II soon earned the epithet "the Quarrelsome" as a result of his ongoing disputes with the kings of Hungary and Bohemia and with the Holy Roman Emperor, also named Frederick II.
The Austrian Frederick II deprived his mother and sisters of their possessions, was hated by his subjects on account of his oppressive rule, and, in 1236, was placed under the imperial ban and driven from Austria.
However, he was later restored to his duchy when the Emperor Frederick II was excommunicated.
Subsequently, the Austrian Frederick II treated with the Emperor Frederick II in vain to make Austria a kingdom.
The male line of the Babenbergs became extinct in 1246, when Frederick II "the Quarrelsome" was killed in battle (the Henneberg branch of the Franconian Babenbergs lived on until 1583 when its lands where divided among the two branches of the Wettin family).
His heir general was Gertrude of Austria, the only child of his late elder brother, Henry of Austria by that man's wife, Agnes of Thuringia.
However, neither her husbands or her son succeeded in settling the Babenberg inheritance under their power.
After some years of struggle known as the "Interregnum", the Duchies of Austria and Styria fell to Otakar II of Bohemia, and subsequently to Rudolph I of Habsburg, whose descendants were to rule Austria until 1918.