These results indicated that melatonin could alleviate TGF‐β1‐induced renal FMT and UUO‐induced renal fibrosis through down‐regulation of miR‐21‐5p. Here, TGFB1 is linked to renal fibrosis.