After the destruction of Rawicz by the Swedes in 1655 during the Deluge, the town was rebuilt in an impressive way, erecting new townhouses, a Baroque church and a Catholic monastery. The early 18th century was an unfavorable period in the town's history. In 1701 it suffered a fire, in 1704-1705 it was occupied by Sweden, foreign troops marched through it: Russians in 1707, Austrians in 1719, Saxons in 1733. In the following decades, rapid development took place again, the construction of the castle was completed and a new Baroque town hall was built. In the second half of the 18th century, there were two breweries, a distillery, a slaughterhouse, and a brickyard in Rawicz.