Опольское княжество
Upon Jan's death in 1532, Lubliniec with the Duchy of Opole fell as a reverted fief to the Lands of the Bohemian Crown, which since 1526 were ruled by the Austrian House of Habsburg. In 1638 the town was visited by King of Poland Władysław IV Vasa. In 1645 along with the Duchy of Opole and Racibórz it returned to Poland under the House of Vasa, and in 1655 the Black Madonna of Częstochowa was briefly hidden at the local castle by the Poles during the Swedish invasion of Poland. In 1666 the town fell to the Habsburg Monarchy again, until it was annexed with most of Silesia by the Prussian king Frederick the Great in 1742.