 The town prospered until the Swedish invasion of Poland (1655–1660), when it was ransacked and destroyed.Following the first partition of Poland, Ulanów was in 1772 annexed by the Habsburg Empire, and remained within Austrian Galicia until late 1918.In the 19th century, it was a private town, and belonged to several noble families.