In 1764, Kazimierz Pulaski defended the city with his 700 men surrounded by royal army during Bar Confederation.