Constipation has a variety of causes, but it's often the result of the slow movement of food through the digestive system. Fortunately, certain foods can help relieve constipation by adding bulk, softening stool, decreasing gut transit time, and increasing stool frequency.