Duchy of Oświęcim
As documented in the manuscripts of the chronicler and diplomat Jan Długosz, King Casimir III the Great erected the Lanckorona Castle to protect the road to Kraków and the border with the Duchy of Oświęcim.