Our study’s primary findings indicate a positive correlation between the AST/ALT ratio and the risk of diabetic retinopathy (DR) in patients with type 2 diabetes. Here, GPT is linked to type 2 diabetes mellitus.