Magnesium is involved in the enzymes that produce and break down vitamin D metabolites