UVMR revealed that a genetically predisposed per standard deviation increase in serum alanine aminotransferase (ALT) level increased the risk of diabetic retinopathy (DR) in type 2 diabetes mellitus (T2DM) (IVW OR = 1.489, 95% CI = 1.206–1.772, p = 0.006). Here, GPT is linked to diabetes mellitus.