Magnesium deficiency can produce symptoms of anxiety or depression, including muscle weakness, fatigue, eye twitches, insomnia, anorexia, apathy, apprehension, poor memory, confusion, anger, nervousness, and rapid pulse.
Serotonin, the "feel-good" brain chemical that is boosted by Prozac, depends on magnesium for its production and function.