Dietary pattern analysis has been considered as an approach to capture the complex interactions of overall diet, which are often lost in studies of single dietary components (e.g., foods and nutrients). The aim of this study was to identify the major dietary patterns of Koreans via principal component analysis based on the food groups and to investigate the association between dietary patterns and gastric cancer (GC) risk. In this study, participants were recruited from the National Cancer Center, Korea. Among them, 415 cases were diagnosed with early GC, and 830 controls were age- and sex-matched at a ratio of 1:2. To determine the subjects' dietary patterns, 34 predefined food groups based on the 106-item semiquantitative food frequency questionnaire (SQFFQ) were used. Odds ratios (ORs) and 95% confidence intervals (CIs) were calculated across the tertiles of dietary pattern scores using logistic regression models. The two dietary patterns derived in this study were named westernized and prudent. Those patterns explained 24.83% of the total variation in food intake. Higher scores on the prudent pattern was inversely associated with the risk of GC (OR [95% CI] for the highest vs. lowest tertiles: 0.58 [0.41-0.84], p for trend = 0.004). Our findings suggest that adherence to the prudent dietary pattern represented by high loadings of vegetables and fruits, was associated with lower GC risk. Further studies with a prospective design and larger sample sizes are necessary.