When pregnant, it is important to take measures to avoid constipation and ensure regular bowel movements. Staying hydrated by drinking plenty of water can help keep the digestive system working properly. Additionally, increasing dietary fiber intake through whole grains, fruits, vegetables and legumes can help stimulate peristalsis in the intestines and promote regularity. Exercise such as walking or light stretching may also assist with this. If these methods do not provide relief from constipation while pregnant, a doctor may recommend over-the-counter remedies such as milk of magnesia or a stool softener containing docusate sodium like Colace that are considered safe during pregnancy.