BackgroundAssociations of liver function with the risk of gestational diabetes mellitus (GDM) remain unclear. This study aimed to examine the relationship and the potential causality between maternal liver biomarkers and the risk of subsequent GDM, as well as to evaluate the interaction between liver biomarkers and lipids on GDM risk.MethodsIn an ongoing Zhoushan Pregnant Women Cohort, pregnant women who finished the first prenatal follow-up record, underwent liver function tests in early pregnancy, and completed the GDM screening were included in this study. Logistic regression models were used to investigate the association, and the inverse-variance weighted method supplemented with other methods of two-sample Mendelian randomization (MR) analysis was applied to deduce the causality.ResultsAmong 9,148 pregnant women, 1,668 (18.2%) developed GDM. 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. Moreover, the causal link between ALT and GDM was confirmed by the MR analysis (OR=1.28, 95%CI:1.05-1.54). A significant interaction between AST/ALT and TG on GDM risk was observed (Pinteraction = 0.026).ConclusionElevated levels of LFI in early pregnancy were remarkably associated with an increased risk of GDM in our prospective cohort. Besides, a positive causal link between ALT and GDM was suggested.