Diabetic cardiomyopathy (DCM) is characterized by myocardial hypertrophy and fibrosis. This study aimed to investigate the effects of microRNA (miR)‐34a on myocardial fibrosis in DCM and its potential mechanism of targeting Pin‐1 signaling. Vimentin and Pin‐1 proteins in mouse cardiac tissues were detected by immunohistochemical staining. Locked nucleic acid in situ hybridization was used to measure miR‐34a expression in cardiac tissues. Primary mouse cardiac fibroblasts (CFs) were transfected with a mimics control/miR‐34a mimics or Pin‐1 plasmid and cultured in high‐glucose (HG) Dulbecco's modified Eagle's medium. The miR‐34a levels were measured by quantitative polymerase chain reaction. The apoptosis and viability of transfected cells were detected by the terminal deoxynucleotidyl transferase dUTP nick end labeling and Cell Counting Kit‐8 assays respectively. A cell migration experiment and dual‐luciferase reporter assay were also performed. The body weight and fasting blood glucose of DCM mice were significantly higher than those in the control (CTL) group. In addition, DCM mice had decreased serum insulin levels and impaired cardiac function. The number of CFs in the DCM group was higher than in the CTL group and Pin‐1 expression was upregulated. The expression level of miR‐34a in the cardiac tissue of mice in the DCM group was obviously downregulated compared with the CTL group. The HG stimulation of CFs for 48 h significantly downregulated the expression level of miR‐34a and was associated with increased Type I collagen expression, cell viability, and migration and decreased apoptosis. However, these effects could be reversed by overexpressing miR‐34a in HG‐induced CFs. Furthermore, we found that Pin‐1 was a direct target of miR‐34a. Our results suggest that miR‐34a can attenuate myocardial fibrosis in DCM by reducing Type I collagen production, cell viability, and migration and increasing the apoptosis of CFs by targeting Pin‐1 signaling.