Green vegetables such as spinach provide magnesium because the center of the chlorophyll molecule contains magnesium. Nuts (especially cashews and almonds), seeds, and some whole grains are also good sources of magnesium.
Although magnesium is present in many foods, it usually occurs in dilute form. As with most nutrients , daily needs for magnesium are unlikely to be met from a single serving of any single food. Eating a wide variety of foods, including five servings of fruits and vegetables daily and plenty of whole grains, helps to ensure an adequate intake of magnesium.
Because magnesium readily dissolves in the water used to refine foods, and also in the water-rich parts of certain foods which are removed during refining, the magnesium content of many refined foods is low. Whole-wheat bread, for example, has twice as much magnesium as white bread because the magnesium-rich germ and bran are removed when white flour is processed. The table of food sources of magnesium suggests many dietary sources of magnesium.
Water can provide magnesium, but the amount varies according to the water supply. "Hard" water contains more magnesium than "soft" water. Dietary surveys do not estimate magnesium intake from water, which may lead to underestimating total magnesium intake and its variability.
Too much magnesium may make it difficult for the body to absorb calcium. Not enough magnesium can lead to hypomagnesemia as described above, with irregular heartbeats, high blood pressure (a sign in humans but not some experimental animals such as rodents), insomnia and muscle spasms (fasciculation). However, as noted, symptoms of low magnesium from pure dietary deficiency are thought to be rarely encountered.
Following are some foods and the amount of magnesium in them:
This information was taken from wikipedia.org 20.05.2007