Considering the high risk of glycated hemoglobin, SBP, and DBP on DR, mediation analysis was performed to explore whether serum ALT or AST concentration could increase the risk of T2DM with DR via these risk factors. This evidence concerns the gene GPT and type 2 diabetes mellitus.