Food containing magnesium are as follows: 1, green vegetables, such as leeks, celery, greens, lettuce, spinach, these green leafy vegetables are rich in magnesium; 2, grains among the coarse grains, such as corn, millet, barley, oats, buckwheat, these grains among the coarse grains are rich in magnesium; 3, nuts, such as walnuts, hazelnuts, pine nuts, pistachios, in these nuts are also rich in magnesium; 4, fruit foods, such as bananas, apples, pears, peaches.