Therefore, dietary Mg deficiency may affect osteoporosis (37) by altering the balance between vitamin D metabolite and PTH. Here, PTH is linked to osteoporosis.