The Kingdom of Hungary was defeated by the Ottoman Empire in the Battle of Mohács in 1526. The Turks besieged and damaged Pressburg, but failed to conquer it. Owing to Ottoman advances into Hungarian territory, the city was designated the new capital of Hungary in 1536, after becoming part of the Habsburg Monarchy and marking the beginning of a new era. The city became a coronation town and the seat of kings, archbishops (1543), the nobility and all major organisations and offices. Between 1536 and 1830, eleven Hungarian kings and queens were crowned at St. Martin's Cathedral. The 17th century was marked by anti-Habsburg uprisings, fighting with the Turks, floods, plagues and other disasters, which diminished the population.