Long-term nephrocalcinosis leads to kidney injury, fibrosis, and even chronic kidney disease (CKD). Macrophage-to-myofibroblast transition (MMT) has been identified as a new mechanism in CKD, however, the effect of MMT in calcium oxalate (CaOx)-induced kidney fibrosis remains unclear. In this study, abundant MMT cells are identified by immunofluorescence (IF) and flow cytometry in kidney tissues of patients with CaOx-related CKD, a male mouse model, and CaOx-treated macrophages. Clodronate liposome (CLO)-mediated macrophage depletion attenuates fibrosis in male nephrocalcinosis mice. Transcriptomic sequencing reveals that histone methyltransferase (HMTs), EZH2, is highly expressed in nephrocalcinosis. Ezh2 inducible knock-out or inhibition by GSK-126 attenuates MMT and renal fibrosis. Mechanistically, ChIP and transcriptomic sequencing show that EZH2 inhibition reduces the enrichment of H3K27me3 on the Dusp23 gene promoter and elevates Dusp23 expression. The Co-IP and molecular docking analysis shows that DUSP23 mediates the dephosphorylation of pSMAD3 (Ser423/425). Thus, our study found that EZH2 promotes kidney fibrosis by meditating MMT via the DUSP23/SMAD3 pathway in nephrocalcinosis.