During the 1672–1676 Polish–Ottoman War, Tarnopol was almost completely destroyed by Turkish forces of Ibrahim Shishman Pasha in 1675 and rebuilt by Aleksander Koniecpolski but did not recover its previous glory until it passed to Marie Casimire, the wife of king John III Sobieski in 1690. The city was later sacked for the last time by Tatars in 1694, and twice by Russians in the course of the Great Northern War in 1710 and the War of the Polish Succession in 1733. In 1747 Józef Potocki invited the Dominicanes and founded the beautiful late-baroque Dominican Church (today the Cathedral of the Immaculate Conception of The Blessed Virgin Mary of the Ternopil-Zboriv archeparchy of the Ukrainian Greek Catholic Church). The city was looted during the Confederation of Bar (1768–1772) by the confederates, the king's army, and by the Russians. In 1770 it was devastated by an outbreak of smallpox.