Milk of Magnesia liquid (magnesium hydroxide) is used to relieve indigestion, excess acid and wind, heartburn and stomach discomfort. It can also be used as a laxative to relieve constipation.