Wiener Neustadt (; [i.e. Lower Austria]; ) is a city located in the Steinfeld south of Vienna, in the state of Lower Austria, in northeast Austria. It is a self-governed city and the seat of the district administration of Wiener Neustadt-Land District. The city is the site of one of the world's oldest military academies, the Theresian Military Academy, which was established by Empress Maria Theresa of Austria in 1751 to train officers for the Austrian army. History The area once belonged to the County of Pitten, which had been inherited by Margrave Ottokar III of Styria in 1158. After the dynasty of the Otakars became extinct with the death of his son Ottokar IV, the Duchy of Styria passed to the Austrian House of Babenberg according to the Georgenberg Pact. Duke Leopold V of Austria established the town called Neustadt in 1194 and financed the construction of a fortress close to the Hungarian border with the ransom paid for the English king Richard the Lionheart, whom he had previously captured and held as a hostage at Dürnstein Castle. In 1241, a small Mongol squadron raided Neustadt during the Mongol incursions in the Holy Roman Empire but was later repulsed by Duke Friederich and his knights. In 1246 it was the scene of a victory of the Hungarians over the Austrians. Neustadt gained important privileges given to the city in order to enable it to prosper. It remained a part of Styria, which after the 1278 Battle on the Marchfeld fell to the House of Habsburg and in 1379 became a constituent duchy of Inner Austria. In the 15th century, Wiener Neustadt experienced a population boom, when Emperor Frederick III of Habsburg took up a residence here and established the Diocese of Wiener Neustadt in 1469. His wife, Eleanor of Portugal, died in Wiener Neustadt in 1467, and the late Gothic church of the old Cistercian abbey contains a monument to her memory. The Wappenwand (coat-of-arms wall) at the local castle displays the coats of arms of his possessions in the middle. His son Maximilian I maintained his court in Wiener Neustadt and is buried here at St. George's Cathedral. The town then also had a significant Jewish commune with Rabbi Israel Isserlin as its most notable member, until all Jews were expelled by order of Emperor Maximilian I in 1496. Habsburg's long-time rival King Matthias Corvinus of Hungary conquered