[3] The same root is present in Czech Libeň, Polish Lublin, Slovenian Ljubljana and others similar Slavic geographic names.
The pledge was part of the Treaty of Lubowla and was thought to be only for a short time, but it finally lasted for 360 years.
Only in the course of the first Partition of Poland in 1772 during the reign of Maria Theresa of Austria the territory came back to the Kingdom of Hungary.
The pledge was actually an advantage for the towns concerned because they did not have to submit themselves to the comitatus or nobility and had a neutral position in turmoils between Poland and Hungary.
Before the establishment of independent Czechoslovakia in 1918, Stará Ľubovňa was part of Szepes County within the Kingdom of Hungary.
Next to the castle there is an open-air museum, Ľubovniansky skanzen, with many houses and other buildings showing the folk architecture of the region.