If your magnesium is low, your adrenal glands (which require a lot of magnesium) can be triggered quite easily. This leads to adrenaline surges when you are under stress or when your blood sugar is low. If that sort of adrenaline surge happens repeatedly over time, it can contribute to anxiety attacks and panic attacks.
I take a magnesium supplement daily. I also take Epsom salt baths because Epsom salt is made of magnesium. For more information, read “The Magnesium Miracle” by Dr. Carolyn Dean. It’s amazing!