Magnesium helps regulate hundreds of body systems, including blood pressure, blood sugar, and muscle and nerve function. We need magnesium to help blood vessels relax, and for energy production, bone development, and transporting calcium and potassium. Just like potassium, too much magnesium can be lost in urine due to diuretic use, leading to low magnesium levels.