While the Protestant Reformation had strongly affected Silesia, the Habsburg emperors had subjected the province to the counter-reformation in the 18th century [REF].
During the Great Northern War, Charles XII of Sweden had marched his armies through Silesia and occupied the Electorate of Saxony, where he forced his adversary, elector August the Strong, into the Treaty of Altranstädt (1706) [REF].