Dietary fiber or roughage is the indigestible portion of food derived from plants. It has two main components:
Dietary fibers can act by changing the nature of the contents of the gastrointestinal tract and by changing how other nutrients and chemicals are absorbed. Some types of soluble fiber absorb water to become a gelatinous, viscous substance which is fermented by bacteria in the digestive tract. Some types of insoluble fiber have bulking action and are not fermented.Lignin, a major dietary insoluble fiber source, may alter the rate and metabolism of soluble fibers. Other types of insoluble fiber, notably resistant starch, are fully fermented. Some but not all soluble plant fibers block intestinal mucosal adherence and translocation of potentially pathogenic bacteria and may therefore modulate intestinal inflammation, an effect that has been termed contrabiotic.
Chemically, dietary fiber consists of non-starch polysaccharides such as arabinoxylans, cellulose, and many other plant components such as resistant starch, resistant dextrins, inulin, lignin, chitins, pectins, beta-glucans, and oligosaccharides. A novel position has been adopted by the US Department of Agriculture to include functional fibers as isolated fiber sources that may be included in the diet. The term "fiber" is something of a misnomer, since many types of so-called dietary fiber are not actually fibrous.
Food sources of dietary fiber are often divided according to whether they provide (predominantly) soluble or insoluble fiber. Plant foods contain both types of fiber in varying degrees, according to the plant's characteristics.
...
Wikipedia