Inflammatory bowel disease (IBD) is a group of diseases with a chronic course, characterized by periods of exacerbation and remission. One of the elements that could potentially predispose to IBD is, among others, a low-fiber diet. Dietary fiber has many functions in the human body. One of the most important is its influence on the composition of the intestinal microflora. Intestinal dysbiosis, as well as chronic inflammation that occurs, are hallmarks of IBD. Individual components of dietary fiber, such as β-glucan, pectin, starch, inulin, fructooligosaccharides, or hemicellulose, can significantly affect preventive effects in IBD by modulating the composition of the intestinal microbiota or sealing the intestinal barrier, among other things. The main objective of the review is to provide information on the effects of individual fiber components of the diet on the risk of IBD, including, among other things, altering the composition of the intestinal microbiota.