They remained the basic units of territorial organization in Poland , then in the Polish-Lithuanian Commonwealth , until the latter 's total dismemberment by its neighbors in 1795 . They remained the basic unit of territorial organization in Poland , then in the Polish-Lithuanian Commonwealth , until the latter 's partitioning in 1795 .