Magnesium is a mineral that is important for normal bone structure in the body. People get magnesium from their diet, but sometimes magnesium supplements are needed if magnesium levels are too low. Low magnesium levels in the body have been linked to diseases such as osteoporosis, high blood pressure, clogged arteries, hereditary heart disease, diabetes, and stroke. An easy way to remember foods that are good magnesium sources is to think of fiber. Foods that are high in fiber are generally high in magnesium. Dietary sources of magnesium include legumes, whole grains, vegetables (especially broccoli, squash, and green leafy vegetables), seeds, and nuts (especially almonds). Other sources include dairy products, meats, chocolate, and coffee. Water with a high mineral content, or "hard" water, is also a source of magnesium. Magnesium is most commonly used for constipation, as an antacid for heartburn, for low magnesium levels, for pregnancy complications called pre-eclampsia and eclampsia, and for a certain type of irregular heartbeat (torsades de pointes).