MgC7NH3O4 crystallizes in the hexagonal P6_122 space group. Mg(1) is bonded in a square pyramidal geometry to one N(1), two equivalent O(1), and two equivalent O(2) atoms. The Mg(1)-N(1) bond length is 2.25 Å. Both Mg(1)-O(1) bond lengths are 2.02 Å. Both Mg(1)-O(2) bond lengths are 2.09 Å. There are four inequivalent C sites. In the first C site, C(1) is bonded in a distorted bent 120 degrees geometry to one C(2), one O(1), and one O(2) atom. The C(1)-C(2) bond length is 1.51 Å. The C(1)-O(1) bond length is 1.25 Å. The C(1)-O(2) bond length is 1.26 Å. In the second C site, C(2) is bonded in a trigonal planar geometry to one C(1), one C(3), and one C(4) atom. The C(2)-C(3) bond length is 1.38 Å. The C(2)-C(4) bond length is 1.40 Å. In the third C site, C(3) is bonded in a distorted bent 120 degrees geometry to one C(2), one N(1), and one H(1) atom. The C(3)-N(1) bond length is 1.35 Å. The C(3)-H(1) bond length is 0.93 Å. In the fourth C site, C(4) is bonded in a distorted single-bond geometry to two equivalent C(2) and one H(2) atom. The C(4)-H(2) bond length is 0.92 Å. N(1) is bonded in a trigonal planar geometry to one Mg(1) and two equivalent C(3) atoms. There are two inequivalent H sites. In the first H site, H(1) is bonded in a single-bond geometry to one C(3) atom. In the second H site, H(2) is bonded in a single-bond geometry to one C(4) atom. There are two inequivalent O sites. In the first O site, O(1) is bonded in a bent 150 degrees geometry to one Mg(1) and one C(1) atom. In the second O site, O(2) is bonded in a bent 150 degrees geometry to one Mg(1) and one C(1) atom. Linkers: 6 [O]C(=O)c1cncc(C([O])=O)c1. Metal clusters: 6 [Mg]. The MOF has largest included sphere 6.24 A, density 1.12 g/cm3, surface area 4031.67 m2/g, accessible volume 0.47 cm3/g