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. In its Township Act, King Casimir III the Great gave its inhabitants the right to hold a weekly Thursday town marketplace as well as a concession to import beer into the town. At the time, the dwellers of Lanckorona enjoyed the same rights as the inhabitants of its much larger neighbouring Capital City of Kraków. Two of the main battles of the Bar Confederation took place on the plains before Lanckorona. On 22 February 1771, the Bar Confederates defended Lanckorona and its castle from the Russian army led by Alexander Suvorov. at Lanckorona The Bar Confederation, was a league of Polish nobles and gentry that was formed to defend the liberties of the nobility within the Roman Catholic Church and the independence of Poland from Russian encroachment. Its activities precipitated a civil war, foreign intervention, and the First Partition of Poland. In February 1768, Russia had compelled the Polish Sejm to abandon projects for internal reform, to grant full political rights to religious dissenters, and to make Poland a Russian protectorate. In reaction, Adam Stanisław Krasiński, the bishop of Kamieniec, Józef Pułaski, and Michał Hieronim Krasiński organized a confederation at the Polish Fortress of Bar what is now a region of Podolia in Ukraine to oppose both the Polish kingStanisław II August Poniatowski and Russia. Józef Pułaski and his son Casimir Pulaski were the founders of the Bar Confederation. Casimir Pulaski went on to become the "father of American cavalry as he emigrated to North America to help in the cause of the American Revolution and freedom there. He distinguished himself heroically throughout the revolution, most notably when he saved the life of George Washington and became a general in the Continental Army, and when he created the Pulaski Cavalry Legion and reformed the Americancavalry. In 1602, Mikołaj Zebrzydowski the Voivode of Kraków and Lanckorona commissioned the construction of the Kalwaria Zebrzydowska monastery and the trails of the Passion of Christ in the neighbouring town of Kalwaria Zebrzydowska modeled on the Calvary outside the city walls of Jerusalem.