In general, the highest quartile of liver function index (LFI), including ALT, AST, GGT, ALP, and hepatic steatosis index, was significantly associated with an increased risk of GDM (OR ranging from 1.29 to 3.15), especially an elevated risk of abnormal postprandial blood glucose level. The gene discussed is GPT; the disease is fatty liver disease.