8 Magnesium Rich Foods to Add to Your Diet March 29, 2017 Magnesium is essential for the proper function of your heart, muscles, and immune system, and eating magnesium-rich foods is the best way to get the nutrient.