Magnesium oxide is a supplement often used to treat migraine and constipation. It may provide other health benefits, including potentially lowering blood pressure and blood sugar levels.