The gene–environment analysis revealed one significant association: PM2.5 exposure in the first trimester elevated GDM risk among non-smoking GSTM1-null women (OR = 1.428, 95% CI: 1.082–1.885, p = 0.012). This evidence concerns the gene GSTM1 and gestational diabetes.