PTH and hypoparathyroidism: Magnesium’s role in calcium metabolism can lead to hypocalcemia due to hypoparathyroidism, resistance to parathyroid hormone (PTH), and the decreased synthesis of calcitriol [107].