The formation of voids in rocks during the development of karst is usually explained by the dissolving action of water and mechanical destruction of rocks with the removal of particles by groundwater. The study of deep karst at the Leningrad oil shale deposit shows that the formation of voids in carbonate rocks can also go at metasomatic processes - as a result of secondary dolomitization of limestone.