In this study, we identify mutations in the gene encoding for cyclin M2 (CNNM2) to be causative for mental retardation and seizures in patients with hypomagnesemia. The gene discussed is CNNM2; the disease is familial primary hypomagnesemia.