In our study, we found that glucose fluctuations in type 2 diabetes exacerbated myocardial fibrosis via the CaMKII/Stat3 pathway. Here, CAMK2G is linked to type 2 diabetes mellitus.