It softens stools to prevent constipation.Eat foods high in fiber, such as cereals, whole grains, fruits, and vegetables.Exercise.Take stool softeners or a laxative only as prescribed by your doctor.DiarrheaDiarrhea includes loose or frequent bowel movements, or both.