Although magnesium does have a well-established reputation for its laxatives qualities, research support for the use of magnesium as a treatment of constipation is not altogether conclusive.
One of the best indicators was a 2006 study that looked at the relationship between constipation and water, fiber, and magnesium intake.
This was a fairly large study involving more than 3000 participants and showed that constipation was NOT found to be associated with low fiber intake or low intake of water from fluids.
Constipation WAS associated with low intake of magnesium and low intake of water from foods.