Magnesium works to increase GABA levels (Gamma-Aminobutyric Acid) in the body, as well as restrict the release of stress hormones. In this way, it can help the nervous system to stop feeling stressed, help the brain to heal itself and even make new neural connections to prevent anxiety.