Diabetic cardiomyopathy (DCM) is a common complication in patients with diabetes, and ultimately leads to heart failure. Endoplasmic reticulum stress (ERS) induced by abnormal glycolipid metabolism is a critical factor that affects the occurrence and development of DCM. Additionally, the upregulation/activation of silent information regulation 2 homolog-1 (SIRT1) has been shown to protect against DCM. Tanshinone II A (Tan IIA), the main active component of Salviae miltiorrhizae radix et rhizome (a valuable Chinese medicine), has protective effects against cardiovascular disease and diabetes. However, its role and mechanisms in diabetes-induced cardiac dysfunction remain unclear. Therefore, we explored whether Tan IIA alleviates ERS-mediated DCM via SIRT1 and elucidated the underlying mechanism. The results suggested that Tan IIA alleviated the pathological changes in the hearts of diabetic mice, ameliorated the cytopathological morphology of cardiomyocytes, reduced the cell death rate, and inhibited the expression of ERS-related proteins and mRNA. The SIRT1 agonist inhibited the activities of glucose-regulated protein 78 (GRP78). Furthermore, the opposite results under the SIRT1 inhibitor. SIRT1 knockdown was induced by siRNA-SIRT1 transfection, and the degree of GRP78 acetylation was increased. Cumulatively, Tan IIA ameliorated DCM by inhibiting ERS and upregulating SIRT1 expression.