Magnesium plays a role in over 300 enzymatic reactions within the body, including the metabolism of food, synthesis of fatty acids and proteins, and the transmission of nerve impulses. Magnesium is one of seven essential macrominerals. An adequate intake can help prevent problems with bones, the cardiovascular system, diabetes, and other functions.