A magnesium-rich diet is extremely important, especially for the healthy functioning of the nerves, muscles, the immune system and also to help keep the bones strong. In addition, magnesium is a nutrient that helps regulate blood sugar levels, and blood pressure, keeping heartbeat steady.