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]. The gene discussed is PTH; the disease is magnesium deficiency.