The inflammatory factor IL-6 had a mediating effect in the association between GDM and postpartum GLU0min, TG and SDLDL-C, with the mediating effect sizes being 18.18%, 32.43% and 31.25%, respectively; the inflammatory factor IL-6 had a mediating effect in the association between GDM and postpartum TyG and siMS, with the mediating effect sizes being 20.59% and 30.77%, respectively; however, IL-6 did not have a mediating effect in the association between GDM and other postpartum metabolic indicators. This evidence concerns the gene IL6 and gestational diabetes.