MgC7NH7O7 crystallizes in the monoclinic P2_1/c space group. Mg(1) is bonded in an octahedral geometry to one O(1), one O(2), one O(3), one O(5), one O(6), and one O(7) atom. The Mg(1)-O(1) bond length is 2.11 Å. The Mg(1)-O(2) bond length is 2.11 Å. The Mg(1)-O(3) bond length is 2.09 Å. The Mg(1)-O(5) bond length is 2.09 Å. The Mg(1)-O(6) bond length is 2.09 Å. The Mg(1)-O(7) bond length is 2.08 Å. There are seven 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(5) atom. The C(1)-C(2) bond length is 1.51 Å. The C(1)-O(1) bond length is 1.27 Å. The C(1)-O(5) bond length is 1.26 Å. In the second C site, C(2) is bonded in a distorted trigonal planar geometry to one C(1), one C(3), and one N(1) atom. The C(2)-C(3) bond length is 1.38 Å. The C(2)-N(1) bond length is 1.35 Å. In the third C site, C(3) is bonded in a distorted single-bond geometry to one C(2) and one H(6) atom. The C(3)-H(6) bond length is 1.09 Å. In the fourth C site, C(4) is bonded in a distorted single-bond geometry to one O(2) atom. The C(4)-O(2) bond length is 1.29 Å. In the fifth C site, C(5) is bonded in a distorted bent 120 degrees geometry to one C(6), one O(3), and one O(4) atom. The C(5)-C(6) bond length is 1.51 Å. The C(5)-O(3) bond length is 1.27 Å. The C(5)-O(4) bond length is 1.27 Å. In the sixth C site, C(6) is bonded in a distorted trigonal planar geometry to one C(5), one C(7), and one N(1) atom. The C(6)-C(7) bond length is 1.37 Å. The C(6)-N(1) bond length is 1.35 Å. In the seventh C site, C(7) is bonded in a distorted single-bond geometry to one C(6) and one H(7) atom. The C(7)-H(7) bond length is 1.09 Å. N(1) is bonded in a trigonal planar geometry to one C(2), one C(6), and one H(5) atom. The N(1)-H(5) bond length is 1.03 Å. There are seven inequivalent H sites. In the first H site, H(1) is bonded in a distorted single-bond geometry to one O(4) and one O(6) atom. The H(1)-O(4) bond length is 1.65 Å. The H(1)-O(6) bond length is 1.00 Å. In the second H site, H(2) is bonded in a single-bond geometry to one O(2) and one O(6) atom. The H(2)-O(2) bond length is 1.70 Å. The H(2)-O(6) bond length is 1.00 Å. In the third H site, H(3) is bonded in a single-bond geometry to one O(7) atom. The H(3)-O(7) bond length is 0.98 Å. In the fourth H site, H(4) is bonded in a single-bond geometry to one O(4) and one O(7) atom. The H(4)-O(4) bond length is 1.73 Å. The H(4)-O(7) bond length is 0.99 Å. In the fifth H site, H(5) is bonded in a single-bond geometry to one N(1) atom. In the sixth H site, H(6) is bonded in a single-bond geometry to one C(3) atom. In the seventh H site, H(7) is bonded in a single-bond geometry to one C(7) atom. There are seven inequivalent O sites. In the first O site, O(1) is bonded in a distorted bent 120 degrees geometry to one Mg(1) and one C(1) atom. In the second O site, O(2) is bonded in a 3-coordinate geometry to one Mg(1), one C(4), and one H(2) atom. In the third O site, O(3) is bonded in a distorted bent 120 degrees geometry to one Mg(1) and one C(5) atom. In the fourth O site, O(4) is bonded in a 3-coordinate geometry to one C(5), one H(1), and one H(4) atom. In the fifth O site, O(5) is bonded in a bent 120 degrees geometry to one Mg(1) and one C(1) atom. In the sixth O site, O(6) is bonded in a distorted water-like geometry to one Mg(1), one H(1), and one H(2) atom. In the seventh O site, O(7) is bonded in a distorted trigonal non-coplanar geometry to one Mg(1), one H(3), and one H(4) atom. Linkers: 4 [O]C(=O)[C]1C=C([O])C=C(C([O])=O)N1. Metal clusters: 4 [Mg]. The MOF has largest included sphere 1.64 A, density 1.88 g/cm3, surface area 3624.91 m2/g, accessible volume 0.07 cm3/g