The Jewish community gained more importance following the migration of Protestants from the city after pressure from local Catholics. In 1639, 143 Jewish men were recorded living in the city and 64 houses there were owned by Jews. The Jewish population grew significantly as a result of people fleeing the Khmelnytsky massacres in 1648 and the Jewish expulsion from Vienna in 1670. A compromise reached in 1677 and amended in 1688 about the extent of trade between Jews and non-Jews is evidence of the key role of Jews in the textile and clothing trades. In 1713, there were 318 Jewish families in the city.