Anti-ulcer: magnesium neutralizes stomach acid, reduces the direct effect of stimulating acid. This increases PH, and leads to inactivation of pepsin. Magnesium hydroxide also strengthens the mucous membrane components. And increase the tonicity of gastric and esophageal sphincter.
Antacids effect: magnesium hydroxide and hydrochloric acid are mixed up quickly then magnesium chloride and water is formed.
Purgative effect: the drug with increased osmolality of the intestinal contents, thereby drawing water and thus expansion and stimulate peristalsis and the intestine will be empty.