The mediating effect of thyroid hormone parameters was 24.9% on the association between pre-pregnancy BMI and GDM. The gene discussed is TG; the disease is gestational diabetes.