The correct option is D Mg(OH)2
Magnesium hydroxide i.e. Mg(OH)2, also known as Milk of magnesia, a mild base, is often used to get relief from pain and irritation caused due to the production of excess acid in the stomach during indigestion.
Hence, the correct answer is option (d).