MgGa4P6(HO3)6 crystallizes in the monoclinic Pm space group. Mg(1) is bonded in a 6-coordinate geometry to one O(1), one O(4), two equivalent O(6), and two equivalent O(8) atoms. There are two inequivalent Ga sites. In the first Ga site, Ga(1) is bonded in a 4-coordinate geometry to one O(12), one O(5), one O(8), and one O(9) atom. In the second Ga site, Ga(2) is bonded to one O(10), one O(11), one O(2), one O(3), one O(6), and one O(7) atom to form distorted GaO6 octahedra that share  a cornercorner with one P(1)HO3 tetrahedra,  a cornercorner with one P(2)HO3 tetrahedra,  a cornercorner with one P(3)HO3 tetrahedra,  a cornercorner with one P(4)HO3 tetrahedra,  a cornercorner with one P(5)HO3 tetrahedra,  a cornercorner with one P(6)HO3 tetrahedra, and  a faceface with one Ga(2)O6 octahedra. There are six inequivalent P sites. In the first P site, P(1) is bonded to one H(5), one O(1), and two equivalent O(10) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 31°. In the second P site, P(2) is bonded to one H(3), one O(2), and two equivalent O(9) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 54°. In the third P site, P(3) is bonded to one H(6), one O(3), and two equivalent O(8) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 48°. In the fourth P site, P(4) is bonded to one H(1), one O(4), and two equivalent O(7) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 45°. In the fifth P site, P(5) is bonded to one H(4), one O(12), and two equivalent O(6) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 54°. In the sixth P site, P(6) is bonded to one H(2), one O(11), and two equivalent O(5) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 53°. There are six inequivalent H sites. In the first H site, H(1) is bonded in a single-bond geometry to one P(4) atom. In the second H site, H(2) is bonded in a single-bond geometry to one P(6) atom. In the third H site, H(3) is bonded in a single-bond geometry to one P(2) atom. In the fourth H site, H(4) is bonded in a single-bond geometry to one P(5) atom. In the fifth H site, H(5) is bonded in a single-bond geometry to one P(1) atom. In the sixth H site, H(6) is bonded in a single-bond geometry to one P(3) atom. There are twelve inequivalent O sites. In the first O site, O(1) is bonded in a bent 150 degrees geometry to one Mg(1) and one P(1) atom. In the second O site, O(2) is bonded in a 3-coordinate geometry to two equivalent Ga(2) and one P(2) atom. In the third O site, O(3) is bonded in a 3-coordinate geometry to two equivalent Ga(2) and one P(3) atom. In the fourth O site, O(4) is bonded in a bent 120 degrees geometry to one Mg(1) and one P(4) atom. In the fifth O site, O(5) is bonded in a bent 150 degrees geometry to one Ga(1) and one P(6) atom. In the sixth O site, O(6) is bonded in a 3-coordinate geometry to one Mg(1), one Ga(2), and one P(5) atom. In the seventh O site, O(7) is bonded in a distorted bent 150 degrees geometry to one Ga(2) and one P(4) atom. In the eighth O site, O(8) is bonded in a 3-coordinate geometry to one Mg(1), one Ga(1), and one P(3) atom. In the ninth O site, O(9) is bonded in a bent 150 degrees geometry to one Ga(1) and one P(2) atom. In the tenth O site, O(10) is bonded in a bent 150 degrees geometry to one Ga(2) and one P(1) atom. In the eleventh O site, O(11) is bonded in a 3-coordinate geometry to two equivalent Ga(2) and one P(6) atom. In the twelfth O site, O(12) is bonded in a distorted single-bond geometry to two equivalent Ga(1) and one P(5) atom.
MgGa4P6(HO3)6 crystallizes in the monoclinic Pm space group. Mg(1) is bonded in a 6-coordinate geometry to one O(1), one O(4), two equivalent O(6), and two equivalent O(8) atoms. The Mg(1)-O(1) bond length is 1.92 Å. The Mg(1)-O(4) bond length is 1.97 Å. Both Mg(1)-O(6) bond lengths are 2.33 Å. Both Mg(1)-O(8) bond lengths are 2.39 Å. There are two inequivalent Ga sites. In the first Ga site, Ga(1) is bonded in a 4-coordinate geometry to one O(12), one O(5), one O(8), and one O(9) atom. The Ga(1)-O(12) bond length is 2.39 Å. The Ga(1)-O(5) bond length is 1.89 Å. The Ga(1)-O(8) bond length is 2.07 Å. The Ga(1)-O(9) bond length is 1.91 Å. In the second Ga site, Ga(2) is bonded to one O(10), one O(11), one O(2), one O(3), one O(6), and one O(7) atom to form distorted GaO6 octahedra that share  a cornercorner with one P(1)HO3 tetrahedra,  a cornercorner with one P(2)HO3 tetrahedra,  a cornercorner with one P(3)HO3 tetrahedra,  a cornercorner with one P(4)HO3 tetrahedra,  a cornercorner with one P(5)HO3 tetrahedra,  a cornercorner with one P(6)HO3 tetrahedra, and  a faceface with one Ga(2)O6 octahedra. The Ga(2)-O(10) bond length is 1.88 Å. The Ga(2)-O(11) bond length is 2.06 Å. The Ga(2)-O(2) bond length is 2.11 Å. The Ga(2)-O(3) bond length is 2.11 Å. The Ga(2)-O(6) bond length is 1.99 Å. The Ga(2)-O(7) bond length is 1.90 Å. There are six inequivalent P sites. In the first P site, P(1) is bonded to one H(5), one O(1), and two equivalent O(10) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 31°. The P(1)-H(5) bond length is 1.40 Å. The P(1)-O(1) bond length is 1.52 Å. Both P(1)-O(10) bond lengths are 1.54 Å. In the second P site, P(2) is bonded to one H(3), one O(2), and two equivalent O(9) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 54°. The P(2)-H(3) bond length is 1.40 Å. The P(2)-O(2) bond length is 1.59 Å. Both P(2)-O(9) bond lengths are 1.53 Å. In the third P site, P(3) is bonded to one H(6), one O(3), and two equivalent O(8) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 48°. The P(3)-H(6) bond length is 1.40 Å. The P(3)-O(3) bond length is 1.57 Å. Both P(3)-O(8) bond lengths are 1.55 Å. In the fourth P site, P(4) is bonded to one H(1), one O(4), and two equivalent O(7) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 45°. The P(4)-H(1) bond length is 1.40 Å. The P(4)-O(4) bond length is 1.53 Å. Both P(4)-O(7) bond lengths are 1.53 Å. In the fifth P site, P(5) is bonded to one H(4), one O(12), and two equivalent O(6) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 54°. The P(5)-H(4) bond length is 1.41 Å. The P(5)-O(12) bond length is 1.50 Å. Both P(5)-O(6) bond lengths are 1.57 Å. In the sixth P site, P(6) is bonded to one H(2), one O(11), and two equivalent O(5) atoms to form distorted PHO3 tetrahedra that share corners with two equivalent Ga(2)O6 octahedra. The corner-sharing octahedral tilt angles are 53°. The P(6)-H(2) bond length is 1.40 Å. The P(6)-O(11) bond length is 1.57 Å. Both P(6)-O(5) bond lengths are 1.53 Å. There are six inequivalent H sites. In the first H site, H(1) is bonded in a single-bond geometry to one P(4) atom. In the second H site, H(2) is bonded in a single-bond geometry to one P(6) atom. In the third H site, H(3) is bonded in a single-bond geometry to one P(2) atom. In the fourth H site, H(4) is bonded in a single-bond geometry to one P(5) atom. In the fifth H site, H(5) is bonded in a single-bond geometry to one P(1) atom. In the sixth H site, H(6) is bonded in a single-bond geometry to one P(3) atom. There are twelve inequivalent O sites. In the first O site, O(1) is bonded in a bent 150 degrees geometry to one Mg(1) and one P(1) atom. In the second O site, O(2) is bonded in a 3-coordinate geometry to two equivalent Ga(2) and one P(2) atom. In the third O site, O(3) is bonded in a 3-coordinate geometry to two equivalent Ga(2) and one P(3) atom. In the fourth O site, O(4) is bonded in a bent 120 degrees geometry to one Mg(1) and one P(4) atom. In the fifth O site, O(5) is bonded in a bent 150 degrees geometry to one Ga(1) and one P(6) atom. In the sixth O site, O(6) is bonded in a 3-coordinate geometry to one Mg(1), one Ga(2), and one P(5) atom. In the seventh O site, O(7) is bonded in a distorted bent 150 degrees geometry to one Ga(2) and one P(4) atom. In the eighth O site, O(8) is bonded in a 3-coordinate geometry to one Mg(1), one Ga(1), and one P(3) atom. In the ninth O site, O(9) is bonded in a bent 150 degrees geometry to one Ga(1) and one P(2) atom. In the tenth O site, O(10) is bonded in a bent 150 degrees geometry to one Ga(2) and one P(1) atom. In the eleventh O site, O(11) is bonded in a 3-coordinate geometry to two equivalent Ga(2) and one P(6) atom. In the twelfth O site, O(12) is bonded in a distorted single-bond geometry to two equivalent Ga(1) and one P(5) atom.