Several dietary substances have been hypothesized to influence the risk of preeclampsia. Our aim in this study was to estimate the association between dietary patterns during pregnancy and the risk of preeclampsia in 23,423 nulliparous pregnant women taking part in the Norwegian Mother and Child Cohort Study (MoBa). Women participating in MoBa answered questionnaires at gestational wk 15 (a general health questionnaire) and 17-22 (a FFQ). The pregnancy outcomes were obtained from the Medical Birth Registry of Norway. Exploratory factor analysis was used to assess the associations among food variables. Principal component factor analysis identified 4 primary dietary patterns that were labeled: vegetable, processed food, potato and fish, and cakes and sweets. Relative risks of preeclampsia were estimated as odds ratios (OR) and confounder control was performed with multiple logistic regression. Women with high scores on a pattern characterized by vegetables, plant foods, and vegetable oils were at decreased risk [relative risk (OR) for tertile 3 vs. tertile 1: 0.72; 95% CI: 0.62, 0.85]. Women with high scores on a pattern characterized by processed meat, salty snacks, and sweet drinks were at increased risk [OR for tertile 3 vs. tertile 1: 1.21; 95% CI: 1.03, 1.42]. These findings suggest that a dietary pattern characterized by high intake of vegetables, plant foods, and vegetable oils decreases the risk of preeclampsia, whereas a dietary pattern characterized by high consumption of processed meat, sweet drinks, and salty snacks increases the risk.