During the First Silesian War (War of the Austrian Succession), in 1741 it was besieged and captured by Prussians, King Frederick II of Prussia laid the foundations of its modern fortifications. In 1758 it was besieged by the Austrians. On 25 August 1769 it was the site of a meeting between Frederick II and Emperor Joseph II, co-regent in the Habsburg Monarchy of Austria.