Fiber is arguably the most important element in a healthy gastrointestinal system, and there are many easy sources of dietary fiber available in most parts of the world. Dietary fiber helps to bind stool, thus preventing constipation and diarrhea, by stimulating peristaltic motion and making bowel movements smoother and more regular. Fiber also acts as an anti-inflammatory substance, thus reducing the irritation and pain associated with this condition. Some of the best fiber-rich foods include rice bran, wheat, beans, berries, and grains.