It was captured again by Austria in October 1761, during the Third Silesian War, or Seven Years' War, but Prussians retook it one year later. In 1803 the city was visited by Polish jurist, poet, political and military activist Józef Wybicki, best known as the author of the lyrics of the national anthem of Poland. In 1807 the city was captured by French troops during the Napoleonic Wars. It became part of the Prussian-led German Empire in 1871 during the unification of Germany and stayed within Germany until the end of World War II. According to the Prussian census of 1905, the city of Schweidnitz had a population of 30,540 who were mostly Germans, but also included a Polish minority comprising around 3% of the population. The World War I flying ace Lothar von Richthofen was buried in Schweidnitz, until the city became owned by Poland after World War II in which the graveyard was leveled. A Nazi prison was located in the city under Nazi Germany, and during World War II, the Germans also established a subcamp of the Gross-Rosen concentration camp, three prisoner of war labor divisions of the Stalag VIII-A camp and a forced labour camp. Among the prisoners was Lesław Bartelski, Polish writer and resistance member, who fought in the Warsaw Uprising.