after the october revolution, the monastery housed archimandrites who had been deprived of their pulpits. in 1929, the soviets issued a special decree on closing the monastery and organizing a detention facility on its premises under the auspices of nkvd (приёмник-распределитель нквд, or "priyomnik-raspredelitel' nkvd"). the last monastery closed in moscow became the first one to be returned in 1983 to the moscow patriarchy and became a spiritual and administrative centre of the russian orthodox church. in 1988, the monastery was restored. a residence was built for the patriarch and synod, as well as a funeral chapel and a chapel in commemoration of the 1000 years of russia's baptism.