How does Castor Oil Induce Labor?

The way people believe this works is because Castor Oil is known to cause spasms in the intestines. They believe it will cause a woman to empty her bowels first after a few hours then the spasms can cause the contractions to begin as well.