Metabolic syndrome (MetS) is recognized as one of the most severe non-communicable chronic diseases. Diet plays an essential role in the development and exacerbation of MetS. Thus, this study aimed to investigate the relationship between dietary patterns and MetS in a suburban population in Shanghai, China. Data were collected on the Zhongshan community from the Shanghai Suburban Adult Cohort and Biobank (SSACB) study between May and September 2017. A total of 5426 participants who completed the questionnaire investigation, physical measurements, and biological sample collection were effectively enrolled in this study. Both posteriori and priori methods were utilized to generate different dietary patterns, including the dietary approaches to stop hypertension (DASH) and Mediterranean diet (MD). The prevalence of MetS in this study was 22.47%. Compared to the reference, dietary patterns with a higher intake of “dairy and fruits” and “coarse cereals and soy products” had protective effects on MetS (p< 0.05). However, no significant correlation with MetS was observed for DASH and MD. Our study recommends higher consumption of fruits, coarse cereals, and soy products, which was associated with a lower prevalence of MetS in the suburban population of Shanghai. The correlation of DASH and MD with MetS in the Chinese population requires further exploration.