 Since ca.1590 the town was governed by starostas from Nowy Sacz, but good times ended during catastrophic Swedish invasion of Poland (1655 - 1660), when Piwniczna was ransacked and burned.On April 7, 1769, during the Bar Confederation, a battle between rebels and Russian forces took place here.