Here are the top 10 magnesium-rich foods that can help you maintain optimal magnesium levels: 1. Leafy Green Vegetables: Spinach, kale, and Swiss chard are excellent sources of magnesium. A cup of cooked spinach provides about 157 mg of magnesium, making it one of the best plant-based sources.2. Nuts and Seeds: Almonds (80 mg per ounce), cashews (82 mg per ounce), and pumpkin seeds (168 mg per ounce) are high in magnesium. They are also rich in healthy fats and proteins.3. Legumes: Black beans, chickpeas, and lentils are great sources of magnesium. For example, one cup of cooked black beans contains approximately 120 mg of magnesium.4. Whole Grains: Quinoa, brown rice, oats, and barley are rich in magnesium. A cup of cooked quinoa provides about 118 mg of magnesium.5. Avocados: Avocados are a delicious source of magnesium, with one medium-sized avocado containing around 58 mg of magnesium. They also provide healthy fats and fiber.6. Bananas: Known for their potassium content, bananas are also a good source of magnesium, with one medium banana providing about 32 mg of magnesium.7. Tofu: Tofu is a great source of magnesium, particularly for vegetarians and vegans. A 4-ounce serving of tofu provides about 37 mg of magnesium.8. Dark Chocolate: Dark chocolate with a high cacao content (70% or more) is not only delicious but also a good source of magnesium. A 1-ounce piece of dark chocolate provides about 64 mg of magnesium.9. Fish: Certain types of fish, such as salmon, mackerel, and halibut, are rich in magnesium. A 3-ounce serving of mackerel provides about 82 mg of magnesium.10. Yogurt: Plain, non-fat yogurt is another source of magnesium. A 6-ounce serving can provide around 45 mg of magnesium, along with protein and probiotics for digestive health.Incorporating a variety of these magnesium-rich foods into your diet can help ensure you're getting enough magnesium to support your health, including muscle and nerve function, energy production, and heart health.