Myocardial fibrosis is one of the main pathological manifestations of diabetic cardiomyopathy (DCM). Spermine (SPM), a product of polyamine metabolism, plays an important role in many cardiac diseases including hypertrophy, ischemia, and infarction, but its role in diabetic myocardial fibrosis has not been clarified. This study aimed to investigate the role of polyamine metabolism, specifically SPM, in diabetic myocardial fibrosis and to explore the related mechanisms. We used intraperitoneal injection of streptozotocin (STZ, 60 mg/kg) in Wistar rats and high glucose (HG, 40 mM) stimulated cardiac fibroblasts (CFs) to established a type 1 diabetes (T1D) model in vivo and in vitro, which were pretreated with exogenous SPM (5 mg/kg per day and 5 μM). The results showed that hyperglycemia induced the expression of the key polyamine synthesis enzyme ornithine decarboxylase (ODC) decreased and the key catabolic enzyme spermidine/spermine N1‐acetyltransferase (SSAT) increased compared with those in the control group. The body weight, blood insulin level, and cardiac ejection function were decreased, while blood glucose, heart weight, the ratio of heart weight to body weight, myocardial interstitial collagen deposition, and endoplasmic reticulum stress (ERS)‐related protein (glucose‐regulated protein‐78, glucose‐regulated protein‐94, activating transcription factor‐4, and C/EBP homology protein) expression in the T1D group were all significantly increased. HG also caused an increased expression of Wnt3, β‐catenin (in cytoplasm and nucleus), while Axin2 and phosphorylated β‐catenin decreased. Exogenous SPM improved the above changes caused by polyamine metabolic disorders. In conclusion, polyamine metabolism disorder occurs in the myocardial tissue of diabetic rats, causing myocardial fibrosis and ERS. Exogenous SPM plays a myocardial protective role via inhibiting of ERS and the canonical Wnt/β‐catenin signaling pathway.