After adjusting for potential confounding factors such as age, gender, race, smoking status, alcohol consumption, hypertension, DM, CVD, ALT, LDH, and Cr, compared to the Q1 group, the all-cause mortality risk in skin cancer patients in the Q2 group (HR: 0.77, 95% CI: 0.57–1.05), Q3 group (HR: 0.50, 95% CI: 0.36–0.69), and Q4 group (HR: 0.54, 95% CI: 0.38–0.77) still showed varying degrees of reduction. Here, GPT is linked to skin cancer.