The Czech lands, then also known as Lands of the Bohemian Crown, were largely subject to the Habsburgs from the end of the Thirty Years' War in 1648 until the Austro-Hungarian Compromise of 1867. There were invasions by the Turks early in the period, and by the Prussians in the next century. The Habsburgs consolidated their rule and under Maria Theresa (1740–1780) adopted enlightened absolutism, with distinct institutions of the Bohemian Kingdom absorbed into centralized structures. After the Napoleonic Wars and the establishment of the Austrian Empire, a Czech National Revival began as a scholarly trend among educated Czechs, led by figures such as František Palacký. Czech nationalism took a more politically active form during the 1848 revolution, and began to come into conflict not only with the Habsburgs but with emerging German nationalism.
Ottoman Turks and Tatars invaded Moravia in 1663, taking 12,000 slaves. In 1664 Habsburg armies under command of Jean-Louis Raduit de Souches attacked the Ottomans, conquered Nitra and Levice and freed some of the captive Moravians. When general Montecuccoli's army won the Battle of Saint Gotthard, the Turks signed Peace of Vasvár, which would last 20 years.