The UVMR results revealed a suggestive causal effect of ALT on T2DM with DR (OR = 1.489, 95% CI = 1.206–1.772, p = 0.006, per SD increase of ALT). Here, GPT is linked to type 2 diabetes mellitus.