Magnesium hydroxide is an ionic solid with the formula Mg(OH)2. It is considered an ionic compound since it is composed of the magnesium cation (Mg2+) and two hydroxide anions (OH-). There are no covalently shared electrons here. Magnesium hydroxide, although ionic, is not highly soluble in water. As such, it forms a suspension in water that resembles milk, thus the name "milk of magnesia". It is a common antacid since the dissolved hydroxide anions in solution readily quench excess stomach acid. The reaction of the hydroxide anions with acid causes more of the magnesium hydroxide to dissolve until all of the acid has been neutralized.