Fiber helps by adding bulk to your stool. The body digests most of the food that you eat, but it cannot digest fiber. This builds up your stool, and helps it to pass out more easily. This is why it helps for problems with C, but it can also help for D by making the stool not as "mushy".