Lanckorona is also known for the Battle of the Bar Confederation that took place at the castle and within a 4 km (2 mi) range south of the town borders on 22 February 1771.
The township of Lanckorona was established by Casimir III the Great in 1336, to protect the road to Kraków, following the creation of new regional borders following the homage given by Mieszko I, Duke of Cieszyn to Wenceslaus II of Bohemia in 1291.
[1] As documented by Jan Długosz, the chronicler and diplomat, in his manuscripts, Casimir III the Great had erected the Lanckorona Castle to protect the road to Kraków and its borders with the Duchy of Oświęcim.
The castle was already standing at the time of the erection of Saint John the Baptist Roman Catholic Parish Church of Lanckorona in 1336.
[3] Two of the main battles of the Bar Confederation, a league of Polish nobles and gentry formed to defend the liberties of the nobility and the independence of Poland from Russian encroachment, took place on the plains before Lanckorona.