In conclusion, quercetin promoted the nuclear translocation of Nrf2, increased the expression of antioxidant factors in cells, and inhibited the progression of cell pyroptosis, thereby alleviating diabetic cardiomyopathy. This evidence concerns the gene NFE2L2 and diabetic cardiomyopathy.