Our work reveals an unexpected mechanism for epilepsy caused by a loss-of-function GRIN1 variant and highlights dietary magnesium supplementation as an effective treatment. The gene discussed is GRIN1; the disease is epilepsy.