Na2MgCl4 crystallizes in the orthorhombic Pbam space group. The structure is three-dimensional. Na1+ is bonded in a 6-coordinate geometry to six Cl1- atoms. There are four shorter (2.82 Å) and two longer (2.97 Å) Na–Cl bond lengths. Mg2+ is bonded to six Cl1- atoms to form edge-sharing MgCl6 octahedra. There are two shorter (2.49 Å) and four longer (2.58 Å) Mg–Cl bond lengths. There are two inequivalent Cl1- sites. In the first Cl1- site, Cl1- is bonded in a 4-coordinate geometry to two equivalent Na1+ and two equivalent Mg2+ atoms. In the second Cl1- site, Cl1- is bonded to four equivalent Na1+ and one Mg2+ atom to form a mixture of distorted edge and corner-sharing ClNa4Mg trigonal bipyramids.