During the Polish–Ottoman War (1620–21), Halicz was burned by Crimean Tatars (1621), and in 1624, Hetman Stanisław Koniecpolski defeated the Tatars at Martynów, near Halicz. In 1649, Halicz was once again destroyed by Cossacks of Bohdan Khmelnytsky, further destruction took place in 1676, during the Polish–Ottoman War (1672–76). In 1765, Halicz had 110 houses and 3 churches, and Franciszek Ksawery Potocki serving as local starosta. The town was seized by Austrian troops in 1772, and remained part of the Habsburg Empire until late 1918.