 After the next uprising in the former Polish-Lithuanian Commonwealth (1863) Russians started destroying the walls of the monastery and building casernes out of the monastery wall bricks.Poland gained independence after World War I, and in the aftermath of the Polish-Soviet War (1919–1920) the territory of Belarus was split between Poland and the Soviet Union.In the 1930s the former Russian barracks were rebuilt by the Polish authorities and adapted into a prison for political prisoners.