In the diabetic heart, hyperglycemia can augment the covalent modification of Ca2+-calmodulin-dependent protein kinaseII (CaMKII) by O-linked N-acetylglucosamine (O-GlcNAc). Concurrently, mitophagy serves as a crucial link in diabetic myocardial injury. The association between these two processes in diabetic cardiomyopathy (DCM) remain to be elucidated. Methods: A rat model of type 1 diabetes was constructed via a single intraperitoneal injection of streptozotocin (STZ; 50 mg/kg). The regulatory mechanism by which O-GlcNAc-modified CaMKII affects mitophagy was determined via bioinformatics analysis and coimmunoprecipitation. Results: At 12 weeks after STZ induction, the rats presented with decreased cardiac function and myocardial injury, accompanied by increased O-GlcNAc modification of CaMKII and significant accumulation of the autophagy markers LC3II/I and P62. Electron microscopy showed an increase in damaged mitochondria and autophagosomes, suggesting that mitophagic flux was inhibited. Bioinformatics analysis identified heat shock protein β-8 (HSPB8) as a crucial autophagy-related protein downstream of CaMKII. The findings confirmed that the adenovirus overexpressing HSPB8 was capable of ameliorating the cardiomyocyte injury induced by high glucose both in vivo and in vitro, effectively facilitating mitophagic flux. An elevation in O - GlcNAc enhances the interaction between CaMKII and HSPB8, exacerbating the inhibitory effect on autophagosome degradation. In contrast, O - GlcNAc inhibitors can effectively mitigate this inhibitory condition. Conclusions: In diabetic rats, an increase in O-GlcNAc can facilitate the binding of its substrate CaMKII to HSPB8, thereby suppressing mitophagic flux and exacerbating myocardial injury.