In the Pearson or Spearman correlation analysis, MHR presented a significantly positive correlation with smoking, dyslipidemia, height, weight, BMI, NC, WC, HC, VFA, fasting plasma insulin, fasting C-peptide, HOMA-IR, ALT, γ-GGT, creatinine, uric acid, TG, WBC, neutrophil, monocyte, lymphocyte, platelet, NLR, and NHR, and in the meantime, negative correlation with gender, antidiabetic drug usage, age, HOMA-ISI, TCHOL, HDL-c, LDL-c, PLR, and in both, the whole study population and MAFLD with T2DM patients (P < 0.05). Here, GPT is linked to type 2 diabetes mellitus.