Perhaps the only moment in history when the Lipka Tatars fought against the Commonwealth was during the so-called Lipka Rebellion of 1672. The "Deluge" and the ensuing period of constant wars made the szlachta of central Poland associate the Muslim Lipkas with the invading forces of the Ottoman Empire. This, combined with the Counter-Reformation promoted by the Vasa dynasty led the Sejm to gradually limit the privileges of the Polish Muslims; among the measures taken were banning the repair of old Mosques and preventing new ones from being constructed, banning serfdom of Christians under Muslims, banning marriage of Christian females to Muslims, putting limitations on property ownership among Tatars. The Polish–Ottoman Wars fed into the discriminatory atmosphere against them and led to anti-Islamic writings and attacks.