Magnesium is a naturally occurring mineral. Magnesium is important for many systems in the body especially the muscles and nerves. Magnesium oxide is used as a supplement to maintain adequate magnesium in the body. Before taking magnesium oxide, tell your doctor if you have any other medical conditions, allergies, or if you take other medicines or other herbal/health supplements. Magnesium oxide may not be recommended in some situations.