Our study demonstrates a positive correlation between the AST/ALT ratio and diabetic retinopathy risk in type 2 diabetes, suggesting its potential role in assessing DR risk. Here, GPT is linked to type 2 diabetes mellitus.