The end of the era of Counter-Reformation allowed the construction of a large Lutheran church in Cieszyn in 1709–1750. The role of Teschen strengthened after the end of the Silesian Wars in the 18th century. As a result of the wars, Cieszyn Silesia remained part of Austria. On 13 May 1779 the Peace of Teschen ending the War of Bavarian Succession has been signed in the town by Austria and Prussia. In 1772 Cieszyn also served as the main seat of the Bar Confederation. Development of the town has been halted by the great fire of 1789, which damaged nearly the whole town. Since late 18th century German culture began to dominate in the town.