Loss of MAGT1 abrogates the Mg2+ flux required for T cell signaling and leads to a novel human primary immunodeficiency.