MgC7NH5O5 crystallizes in the monoclinic P2_1/c space group. Mg(1) is bonded in an octahedral geometry to one N(1), one O(1), one O(2), one O(3), one O(4), and one O(5) atom. The Mg(1)-N(1) bond length is 2.27 Å. The Mg(1)-O(1) bond length is 2.11 Å. The Mg(1)-O(2) bond length is 2.04 Å. The Mg(1)-O(3) bond length is 2.02 Å. The Mg(1)-O(4) bond length is 2.07 Å. The Mg(1)-O(5) bond length is 2.09 Å. 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(2), and one O(3) atom. The C(1)-C(2) bond length is 1.51 Å. The C(1)-O(2) bond length is 1.27 Å. The C(1)-O(3) 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.40 Å. 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.34 Å. The C(3)-H(1) bond length is 1.09 Å. In the fourth C site, C(4) is bonded in a distorted single-bond geometry to one C(2) and one H(2) atom. The C(4)-H(2) bond length is 1.09 Å. In the fifth C site, C(5) is bonded in a distorted single-bond geometry to one C(6), one C(7), and one N(1) atom. The C(5)-C(6) bond length is 1.39 Å. The C(5)-C(7) bond length is 1.51 Å. The C(5)-N(1) bond length is 1.35 Å. In the sixth C site, C(6) is bonded in a distorted single-bond geometry to one C(5) and one H(3) atom. The C(6)-H(3) bond length is 1.09 Å. In the seventh C site, C(7) is bonded in a distorted bent 120 degrees geometry to one C(5), one O(1), and one O(5) atom. The C(7)-O(1) bond length is 1.28 Å. The C(7)-O(5) bond length is 1.26 Å. N(1) is bonded in a distorted trigonal planar geometry to one Mg(1), one C(3), and one C(5) atom. There are five 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. In the third H site, H(3) is bonded in a single-bond geometry to one C(6) atom. In the fourth H site, H(4) is bonded in a single-bond geometry to one O(1) and one O(4) atom. The H(4)-O(1) bond length is 1.68 Å. The H(4)-O(4) bond length is 1.00 Å. In the fifth H site, H(5) is bonded in a single-bond geometry to one O(4) atom. The H(5)-O(4) bond length is 0.98 Å. There are five inequivalent O sites. In the first O site, O(1) is bonded in a 3-coordinate geometry to one Mg(1), one C(7), and one H(4) 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. In the third O site, O(3) is bonded in a bent 150 degrees geometry to one Mg(1) and one C(1) atom. In the fourth O site, O(4) is bonded in a 3-coordinate geometry to one Mg(1), one H(4), and one H(5) atom. In the fifth O site, O(5) is bonded in a bent 150 degrees geometry to one Mg(1) and one C(7) atom. Linkers: 3 [O]C(=O)c1ccc(C([O])=O)nc1. Metal clusters: 4 [Mg]. The MOF has largest included sphere 1.82 A, density 1.83 g/cm3, surface area 3666.34 m2/g, accessible volume 0.08 cm3/g