Magnesium is required for the proper growth and maintenance of bones. This mineral plays a role in enzyme reactions in the human body including proper function of nerves, muscles, and many other parts of the body. In the stomach, magnesium helps neutralize stomach acid and moves stools through the intestine.