the Strong of Poland in 1697. He gathered many of the best musicians, architects and painters from all over Europe to Dresden. His reign marked the beginning of Dresden's emergence as a leading European city for technology and art. During the reign of Kings Augustus II the Strong and Augustus III of Poland most of the city's baroque landmarks were built. These include the Zwinger Royal Palace, the Japanese Palace, the Taschenbergpalais, the Pillnitz Castle and the two landmark churches: the Catholic Hofkirche and the Lutheran Frauenkirche. In addition, significant art collections and museums were founded. Notable examples include the Dresden Porcelain Collection, the Collection of Prints, Drawings and Photographs, the Grünes Gewölbe and the Mathematisch-Physikalischer Salon. In 1726 there was a riot for two days after a Protestant clergyman was killed by a soldier who had recently converted from Catholicism. In 1745, the Treaty of Dresden between Prussia, Saxony, and Austria ended the Second Silesian War. Only a few years later, Dresden suffered heavy destruction in the Seven Years' War (1756–1763), following its capture by Prussian forces, its subsequent re-capture, and a failed Prussian siege in 1760. Friedrich Schiller completed his Ode to Joy (the literary base of the European anthem) in Dresden in 1785. 19th and early 20th century In 1806, Dresden became the capital of the Kingdom of Saxony established by Napoleon. During the Napoleonic Wars the French Emperor made it a base of operations, winning there the Battle of Dresden on 27 August 1813. As a result of the Congress of Vienna, the Kingdom of Saxony became part of the German Confederation in 1815. Following the Polish uprisings of 1831, 1848 and 1863 many Poles fled to Dresden, among others composer Frédéric Chopin. Dresden itself was a centre of the German Revolutions in 1848 with the May Uprising, which cost human lives and damaged the historic town of Dresden. The uprising forced Frederick Augustus II of Saxony to flee from Dresden, but he soon after regained control over the city with the help of Prussia. In 1852, the population of Dresden grew to 100,000 inhabitants, making it one of the biggest cities within the German Confederation. As the capital of the Kingdom of Saxony, Dresden became part of the newly founded German Empire in 1871. In the following years, the city became a major centre of economy, including motor car production, food processing, banking and the