Inadequate magnesium appears to reduce serotonin levels, and antidepressants have been shown to raise brain magnesium. A 2008 study found that magnesium was as effective as the tricyclic antidepressants in treating depression among people with diabetes.