After adjusting for potential confounders, TG, ApoA1, ApoB, LDL-c, triglyceride glucose index, TG/HDL-c, and TC/HDL-c in early pregnancy were positively associated with the risk of GDM (odds ratios [95% CI] for extreme interquartile comparisons were 2.040 (1.468–2.843), 1.506 (1.091–2.082), 1.529 (1.110–2.107), 1.504 (1.086–2.086), 1.952 (1.398–2.731), 2.127 (1.526–2.971), and 2.370 (1.700-3.312), all trend P < 0.05). The gene discussed is APOB; the disease is gestational diabetes.