Our study suggests that serum GGT levels have greater reference significance than AST or ALT for the risk of diabetes in the middle-aged population. Here, GPT is linked to diabetes mellitus.