Duchy of Racibórz
After the division of Polish districts in 1138 it belonged to the Duchy of Racibórz, and from the fourteenth to the sixteenth century to the Duchy of Auschwitz, the same to the Czech state. In 1564 years it was absorbed by the Polish Kingdom. In 1795 it got included in the Austrian partition. In the interwar period in the Kraków Voivodeship.