In order to have the right balance of calcium and magnesium in your bloodstream, we need a functional parathyroid gland. These glands control the level of calcium in the blood, bones and body by producing parathyroid hormones. Calcium is one of the most important elements in the body because it is used to control many systems, and magnesium is needed for calcium absorption.