Pozsony, supporting king Ladislaus III of Poland, and the actual town of Pozsony below the castle hill, supporting (and owned by) queen Elisabeth. In 1442 Ladislaus settled at the castle and temporarily conquered the town, but was defeated by the Austrian emperor Frederick III, Holy Roman Emperor supporting Elisabeth. Finally, in 1443 Elisabeth got the town back, but the castle remained in Ladislaus' hands till his death in 1444. From 1465 until 1490 Pozsony was the seat of the first university in present-day Slovakia, the Universitas Istropolitana (often wrongly called Academia Istropolitana). From 1490 to 1526 Pressburg was a place of diplomatic negotiations under the Jagiellonian kings. In the summer of 1490 Maximilian I, Holy Roman Emperor drove the Hungarians from Austria, and even occupies Hungarian frontier territories, but he is compelled by want of money to retreat, and signed the Treaty of Pressburg (also called the (2nd) Peace of Pressburg) with the Hungarian King Ladislaus II on 7 November 1491. Under this treaty it is agreed that Hungary renounced Lower Austri and agreed that Maximilian should succeed to the crown in case Ladislaus left no legitimate male issue. After the Battle of Mohács in 1526, where the Kingdom of Hungary was defeated by the expanding Ottoman Empire, the Turks besieged Pressburg 1529, but failed to conquer it. Two years later churches and hospitals outside the town wall were deliberately destroyed so that the Turks would not be able to see from there into the town behind the town wall. In the beginning of 1532 thousands of soldiers were sent to Pressburg as a protection against the Turks planning to attack Vienna. Pressburg was temporarily turned to a military camp. The Turks, seeing the military force in Pressburg, decide to attack Vienna from the south. In this period the city became a safe haven for the Holy Crown of Hungary, kept safe from Turkish and Habsburg hands. 1536–1784 As a consequence of Ottoman advances through Hungarian territory and the capture of Buda, the Pressburg designated as the capital of Royal Hungary in 1536. The Kingdom of Hungary was part of the Habsburg Monarchy from 1526 to 1918. Pressburg was also made a meeting place of the Hungarian Diet from 1542 to 1848 (with interruptions) and the coronation town for Hungarian kings and queens from 1536 to 1830 (in the St. Martin's Cathedral). The first coronation was that of King Maximilian