In summary, our study showed that metformin attenuated renal fibrosis effectively both in vitro and in vivo, and that these effects were associated with the downregulation of TGF-β and the inhibition of the ERK signaling pathway. Here, TGFB1 is linked to renal fibrosis.