Hypomagnesemia impedes the Mg-dependent production of cAMP induced by adenyl cyclase, leading to the diminished release of PTH and subsequently lowering calcium levels, as PTH maintains calcium homeostasis. This evidence concerns the gene PTH and familial primary hypomagnesemia.