Sweet potatoes contain plenty of fiber and magnesium, which can help you move your bowels and relieve you of constipation. Add plenty of fiber to your diet, and you won't even have constipation in the first place.