Inhibition of these processes with EGFR inhibitors decreases TRPM6 activity and reduces Mg2+ influx into cells, promoting Mg2+ excretion in the kidney with resultant Mg2+ wasting and hypomagnesemia. Here, TRPM6 is linked to familial primary hypomagnesemia.