Hypomagnesemia is also a risk factor for PTDM, and its mechanism might be as follows: hypomagnesemia can reduce the activity of insulin tyrosine kinase, affect the synthesis and secretion of insulin, and cause hyperglycemia after transplantation. Here, INS is linked to familial primary hypomagnesemia.