About Magnesium Hydroxide Mineral, Magnesium compound, Antacid and laxative. Mechanism of Action of Magnesium Hydroxide It neutralize the gastric acid (where the hydroxide ions from the Mg(OH)2 combine with acidic H+ ions produced in the form of hydrochloric acid by parietal cells in the stomach). This relieves the hyperacidity problems in the stomach.