Growing clinical evidence represented that certain dietary components are involved in inflammatory bowel disease (IBD) development and progression. This research, therefore, aimed to evaluate whether there exists any relationship between nutrients and IBD. This case–control study from 2017 to 2019 was performed on 145 newly diagnosed IBD patients and 145 BMI‐, sex‐, and age‐matched healthy controls who were recruited from a hospital clinic. A validated 168‐item food frequency questionnaire was completed by each participant. Anthropometric measurements and physical activity levels were measured for all participants. Stata software was used to analyze all data. Of the 234 study individuals who participated, 112 were IBD patients and 122 were healthy people. The higher amount of seafood and cholesterol was related to an increased risk of IBD and ulcerative colitis development; however, individuals who had a higher intake of calcium were less likely to have Crohn's compared to the healthy group. There was a positive relation between honey and jam, seafood, organ meats, salt, fruits on trees, fruit juice, olives, and nuts and the probability of IBD, but there was a negative association between refined grains, potatoes, salty snacks, legumes, dairy, and cruciferous and the probability of IBD. Higher consumption of seafood and cholesterol was positively connected with a higher risk of IBD development in the current case–control study. A substantial association was seen between honey and jam, seafood, organmeats, salt, fruit on trees, fruit juice, olives, and nut consumption and IBD developement.