Magnesium is an essential mineral involved in over 300 biochemical processes in the body. It plays key roles in energy production, muscle and nerve function, heart rhythm, and bone health. Because it is not always consumed in sufficient amounts through diet alone, magnesium is a popular dietary supplement. Different forms of magnesium (oxide, citrate, glycinate) vary in their absorption and use.