For animal experiments, the results revealed that melatonin remarkably ameliorated UUO‐induced renal fibrosis, attenuated the expression of miR‐21‐5p and pro‐fibrotic proteins and elevated Spry1 and PTEN expression. The gene discussed is SPRY1; the disease is renal fibrosis.