Lastly, vitamin D metabolism is dependent on Mg as a cofactor (35), and metabolic balance between PTH and vitamin D has been shown to be closely related to osteoporosis (36). This evidence concerns the gene PTH and osteoporosis.