Nothing is more common than for pregnancy to change altogether the habit of the bowels, in cases where previously they were quite regular or even relaxed. They often become so constipated as to require constant care and attention. The most common consequences of obstinate constipation are continued headache, anxiety, giddiness, sleeplessness, distressing dreams, vomiting, displacement of the womb, swelling of the veins of the legs, tedious labor, painful, irregular, insufficient pains, obstruction of the passage of the child and great danger of child bed fever subsequent to delivery. It also commonly induces general uneasiness, nervous and febrile excitement, loss of appetite. 

Treatment:

Constipation can be generally remedied by a proper diet, by increasing the proportion of vegetables and fruits, or adding the use of a glass of pure fresh water after rising in the morning and by proper exercise.

Even if this is not helping much one can take a very good homeopathic medicine which I frequently prescribe my patients is Alumina 200 - 4 pills twice a day for 3 days. Stop and wait for 15 days. There will not be any side effects. Rather general health of baby and mother will be improved. 

90% of the constipation cases can be cured with this wonderful medicine. There are other medicines like Nux vomica, Kali Bich , Capsicum, Veratrum Alb, Belladona, etc. which is also helpful in some of my cases.