PTH and nutritional disorder: Magnesium deficiency also contributes to osteoporosis directly by acting on bone cells and altering crystal formation, and indirectly by affecting parathyroid hormone secretion and activity and promoting low-grade inflammation [12].