In the title compound, [Mg(C2H5NO2)2(H2O)4][Mg(H2O)6](SO4)2, the MgII atoms of both dications lie on inversion centres, and each of them is in an octahedral coordination environment. The glycine molecule exists in the zwitterionic form. The [Mg(H2O)6]2+ and [Mg(C2H5NO2)2(H2O)4]2+ dications pack as alternate layers parallel to the ab plane, with the sulfate anions lying between them. The ions are linked to form a three-dimensional network by O—H⋯O and N—H⋯O hydrogen bonds.