If you find your muscles cramping up or spasming, magnesium deficiency may be a root cause. Magnesium helps relax your muscles and keeps them from seizing up and cramping.
When sugar is refined, the molasses and magnesium are removed. When you overindulge in refined sugar, your body excretes magnesium through the kidneys.
Difficulty getting to sleep can be a sign of magnesium deficiency, as can difficulty staying asleep. Often insomnia and related sleep disturbances are a result of an electrolyte imbalance, which in turn can be caused by low magnesium levels.