PTH and vitamin D deficiency: Moreover, magnesium supplementation can correct osteoporosis combined with PTH and vitamin D deficiency[80].