silk and wool fabric manufacture in the city, one of the leading manufactories of this type throughout Poland. Stanisław Koniecpolski died in Brody on 11 March 1646. On 30 June funeral ceremonies took place in Brody. In 1648, during the Cossack uprising, the castle took eight weeks for Bohdan Khmelnytsky to capture. Notably, according to the book History of the Rus, the town's Jewish population was spared after the sack. The Cossacks destroyed and plundered the city. The Jews of Brody were found not to have been engaged in alleged maltreatment of the Orthodox Christian (Rus) population and were only required to pay a "moderate tribute" in kind. In 1704, Brody was purchased by Potocki family. In 1734 the fortress was destroyed by Russian troops and was later replaced by Stanisław Szczęsny Potocki's palace in the Baroque style. Austrian Empire As a result of the First Partition of Poland, in 1772, Brody became a part of Habsburg Empire (from 1804 the Austrian Empire). During the Austro-Polish War (part of Polish national liberation fights), on 27 May 1809, the city was captured by Poles without a fight. In 1812, Wincenty Potocki was forced by the Austrian government to remove the city's fortifications. In 1817 a secondary school (Realschule) was founded in Brody, transformed in 1865 into a gymnasium. After the liberalization of Austrian policies in the Austrian Partition of Poland, after 1904 German was gradually replaced by Polish at this school. Polish Republic In 1919, Brody became part of the Second Polish Republic, after Poland regained independence a year earlier. It was the site of a battle during the Polish-Soviet War of 1920 and heavy destruction by both Polish and Russian forces, and is described extensively in stories of the Red Cavalry by Isaac Babel. Administratively Brody was the seat of Brody County located in the Tarnopol Voivodeship. Brody was an important military base, with the Kresowa Cavalry Brigade headquarters established there. In 1936, the People's University in Brody (Uniwersytet Ludowy w Brodach) was founded for farmers from the surrounding area. World War II After the Soviet invasion of Poland, during World War II, in September 1939, Brody was occupied by the Red Army. The Soviets deported mainly Polish people deep into the USSR. Between 26 and 30 June 1941, a tank battle was fought nearby between the German Panzer Group 1 and five Soviet mechanized corps with heavy losses on