Magnesium hydroxide is a typical antacid that neutralizes excess stomach acid and relieves symptoms such as heartburn and indigestion. When consumed, magnesium hydroxide reacts with hydrochloric acid (HCl) in the stomach to form magnesium chloride (MgCl2) and water (H2O), thereby raising the pH and reducing acidity.