The reported associations of maternal dietary patterns during pregnancy with gestational weight gain are inconsistent, especially among the less studied Asian Chinese populations. In a prospective pre-birth cohort study conducted in northern China, we determined the associations between maternal dietary patterns and the probability of excess gestational weight gain (EGWG) among 1026 pregnant women. We used 3-day food diaries to assess maternal diet and performed principal component analysis to identify dietary patterns. Maternal adherence to a traditional pattern, which was characterized by a higher intake of tubers, vegetables, fruits, red meat, and rice, was associated with a higher probability of EGWG (quartile 3 vs. quartile 1, odds ratio [OR] = 1.62, 95% confidence interval [CI] = 1.10−2.38). This risk association was more pronounced among women who were overweight/obese before pregnancy (quartile 4 vs. quartile 1, OR = 5.17, 95% CI = 1.45–18.46; p for interaction < 0.01). Maternal adherence to a high protein pattern, which was characterized by a higher intake of fried foods, beans and bean products, dairy products, and fruits, was associated with a lower risk of EGWG (quartile 3 vs. quartile 1, OR = 0.56, 95% CI, 0.39−0.81). The protective association was more pronounced among non-overweight/obese women (p for interaction < 0.01). These findings may help to develop interventions and better define target populations for EGWG prevention.