this refers to the process whereby one mineral is dissolved and a new mineral fills the space via precipitation. replacement can be partial or complete. complete replacement destroys the identity of the original minerals or rock fragments giving a biased view of the original mineralogy of the rock/ porosity can also be affected by this process. for example, clay minerals tend to fill up pore space and thereby reducing porosity.