A metamorphic rock consisting of carbonate minerals (calcite or dolomite) that have recrystallized under the influence of heat and pressure.