Maglucate is used to treat or prevent low levels of magnesium in the blood, which can result from conditions like gastrointestinal disorders, prolonged vomiting, diarrhea, or kidney disease. It may also be prescribed to support nerve, muscle, and heart function.