Magnesium is an essential mineral crucial for many bodily functions. It is necessary for more than 300 biochemical reactions in the body, including blood sugar control, blood pressure regulation, and muscle and nerve function. Magnesium also supports bone health and is important for immune health and normal heart rhythm.
Magnesium is naturally found in many foods and is also available as a nutritional supplement. Good dietary sources of magnesium include nuts, seeds, legumes, whole grains, fruits such as bananas and avocados, and dark, leafy greens such as spinach.21 Magnesium is also added as a nutrient to cereals and other fortified foods.
https://www.health.com/medications-not-to-mix-with-magnesium-8687830