Magnesium oxide is used for relief for heartburn and sore stomach, as an antacid, magnesium supplement and as a short-term laxative. It is also used to improve symptoms of indigestion.