Milk of magnesia (Mg(OH)2)(aq) has a pH of 10.5. Its base property makes it an effective antacid by neutralizing the stomach's excess acids. The magnesium ions in the milk of magnesia help absorb water from the surrounding intestinal tract tissues that help ease the passage of fecal matter.