The junction of the duchy with Lesser Poland was concluded when in 1790 the Great Sejm formally incorporated the Duchy as a Land of the Polish Crown into the Polish–Lithuanian Commonwealth. In the course of the Third Partition of Poland in 1795, the duchy and its adjacent regions were annexed by Prussia and incorporated into the new province of New Silesia. In 1800 the Kraków bishops moved their residence away from Siewierz.