The structure described by Mg4RuN4 crystallizes in the triclinic P-1 space group. There are four inequivalent Mg sites. In the first Mg site, Mg(1) is bonded to one N(1), one N(2), one N(3), and one N(4) atom to form MgN4 tetrahedra that share  a cornercorner with one Mg(3)N5 square pyramid, corners with three equivalent Mg(4)N5 square pyramids, corners with four equivalent Ru(1)N4 trigonal pyramids,  an edgeedge with one Mg(4)N5 square pyramid, and edges with two equivalent Mg(3)N5 square pyramids. In the second Mg site, Mg(2) is bonded in a 4-coordinate geometry to two equivalent N(2) and two equivalent N(3) atoms. In the third Mg site, Mg(3) is bonded to one N(3), two equivalent N(1), and two equivalent N(4) atoms to form MgN5 square pyramids that share corners with three equivalent Mg(4)N5 square pyramids,  a cornercorner with one Mg(1)N4 tetrahedra, corners with three equivalent Ru(1)N4 trigonal pyramids, edges with two equivalent Mg(3)N5 square pyramids, edges with three equivalent Mg(4)N5 square pyramids, edges with two equivalent Mg(1)N4 tetrahedra, and  an edgeedge with one Ru(1)N4 trigonal pyramid. In the fourth Mg site, Mg(4) is bonded to one N(3), two equivalent N(1), and two equivalent N(4) atoms to form MgN5 square pyramids that share corners with three equivalent Mg(3)N5 square pyramids, corners with three equivalent Mg(1)N4 tetrahedra,  a cornercorner with one Ru(1)N4 trigonal pyramid, edges with two equivalent Mg(4)N5 square pyramids, edges with three equivalent Mg(3)N5 square pyramids,  an edgeedge with one Mg(1)N4 tetrahedra, and edges with two equivalent Ru(1)N4 trigonal pyramids. Ru(1) is bonded to one N(1), one N(2), one N(3), and one N(4) atom to form distorted RuN4 trigonal pyramids that share  a cornercorner with one Mg(4)N5 square pyramid, corners with three equivalent Mg(3)N5 square pyramids, corners with four equivalent Mg(1)N4 tetrahedra,  an edgeedge with one Mg(3)N5 square pyramid, and edges with two equivalent Mg(4)N5 square pyramids. There are four inequivalent N sites. In the first N site, N(1) is bonded to one Mg(1), two equivalent Mg(3), two equivalent Mg(4), and one Ru(1) atom to form NMg5Ru octahedra that share corners with two equivalent N(3)Mg5Ru octahedra, corners with two equivalent N(4)Mg5Ru octahedra, corners with two equivalent N(2)Mg3Ru tetrahedra, edges with two equivalent N(1)Mg5Ru octahedra, edges with two equivalent N(3)Mg5Ru octahedra, and edges with four equivalent N(4)Mg5Ru octahedra. The corner-sharing octahedral tilt angles range from 6-14°. In the second N site, N(2) is bonded to one Mg(1), two equivalent Mg(2), and one Ru(1) atom to form NMg3Ru tetrahedra that share corners with two equivalent N(1)Mg5Ru octahedra, corners with two equivalent N(4)Mg5Ru octahedra, corners with six equivalent N(3)Mg5Ru octahedra, and  an edgeedge with one N(2)Mg3Ru tetrahedra. The corner-sharing octahedral tilt angles range from 51-66°. In the third N site, N(3) is bonded to one Mg(1), one Mg(3), one Mg(4), two equivalent Mg(2), and one Ru(1) atom to form NMg5Ru octahedra that share corners with two equivalent N(1)Mg5Ru octahedra, corners with six equivalent N(2)Mg3Ru tetrahedra,  an edgeedge with one N(3)Mg5Ru octahedra, edges with two equivalent N(1)Mg5Ru octahedra, and edges with three equivalent N(4)Mg5Ru octahedra. The corner-sharing octahedral tilt angles range from 6-7°. In the fourth N site, N(4) is bonded to one Mg(1), two equivalent Mg(3), two equivalent Mg(4), and one Ru(1) atom to form NMg5Ru octahedra that share corners with two equivalent N(1)Mg5Ru octahedra, corners with two equivalent N(2)Mg3Ru tetrahedra, edges with two equivalent N(4)Mg5Ru octahedra, edges with three equivalent N(3)Mg5Ru octahedra, and edges with four equivalent N(1)Mg5Ru octahedra. The corner-sharing octahedral tilt angles range from 11-14°. is represented by the CIF file [CIF]
data_Mg4RuN4
_symmetry_space_group_name_H-M   'P 1'
_cell_length_a   5.419
_cell_length_b   5.439
_cell_length_c   8.418
_cell_angle_alpha   67.791
_cell_angle_beta   80.409
_cell_angle_gamma   70.587
_symmetry_Int_Tables_number   1
_cell_volume   216.429
_cell_formula_units_Z   2
loop_
 _symmetry_equiv_pos_site_id
 _symmetry_equiv_pos_as_xyz
  1  'x, y, z'
loop_
 _atom_site_type_symbol
 _atom_site_label
 _atom_site_symmetry_multiplicity
 _atom_site_fract_x
 _atom_site_fract_y
 _atom_site_fract_z
 _atom_site_occupancy
  Mg  Mg0  1  0.734  0.628  0.210  1.0
  Mg  Mg1  1  0.266  0.372  0.790  1.0
  Mg  Mg2  1  0.734  0.264  1.000  1.0
  Mg  Mg3  1  0.266  0.736  0.000  1.0
  Mg  Mg4  1  0.737  0.468  0.585  1.0
  Mg  Mg5  1  0.263  0.532  0.415  1.0
  Mg  Mg6  1  0.254  0.936  0.591  1.0
  Mg  Mg7  1  0.746  0.064  0.409  1.0
  Ru  Ru8  1  0.745  0.853  0.776  1.0
  Ru  Ru9  1  0.255  0.147  0.224  1.0
  N  N10  1  0.990  0.680  0.614  1.0
  N  N11  1  0.010  0.320  0.386  1.0
  N  N12  1  0.849  0.863  0.969  1.0
  N  N13  1  0.151  0.137  0.031  1.0
  N  N14  1  0.505  0.604  0.795  1.0
  N  N15  1  0.495  0.396  0.205  1.0
  N  N16  1  0.510  0.823  0.379  1.0
  N  N17  1  0.490  0.177  0.621  1.0
[/CIF]
.
The structure described by Mg4RuN4 crystallizes in the triclinic P-1 space group. There are four inequivalent Mg sites. In the first Mg site, Mg(1) is bonded to one N(1), one N(2), one N(3), and one N(4) atom to form MgN4 tetrahedra that share  a cornercorner with one Mg(3)N5 square pyramid, corners with three equivalent Mg(4)N5 square pyramids, corners with four equivalent Ru(1)N4 trigonal pyramids,  an edgeedge with one Mg(4)N5 square pyramid, and edges with two equivalent Mg(3)N5 square pyramids. In the second Mg site, Mg(2) is bonded in a 4-coordinate geometry to two equivalent N(2) and two equivalent N(3) atoms. In the third Mg site, Mg(3) is bonded to one N(3), two equivalent N(1), and two equivalent N(4) atoms to form MgN5 square pyramids that share corners with three equivalent Mg(4)N5 square pyramids,  a cornercorner with one Mg(1)N4 tetrahedra, corners with three equivalent Ru(1)N4 trigonal pyramids, edges with two equivalent Mg(3)N5 square pyramids, edges with three equivalent Mg(4)N5 square pyramids, edges with two equivalent Mg(1)N4 tetrahedra, and  an edgeedge with one Ru(1)N4 trigonal pyramid. In the fourth Mg site, Mg(4) is bonded to one N(3), two equivalent N(1), and two equivalent N(4) atoms to form MgN5 square pyramids that share corners with three equivalent Mg(3)N5 square pyramids, corners with three equivalent Mg(1)N4 tetrahedra,  a cornercorner with one Ru(1)N4 trigonal pyramid, edges with two equivalent Mg(4)N5 square pyramids, edges with three equivalent Mg(3)N5 square pyramids,  an edgeedge with one Mg(1)N4 tetrahedra, and edges with two equivalent Ru(1)N4 trigonal pyramids. Ru(1) is bonded to one N(1), one N(2), one N(3), and one N(4) atom to form distorted RuN4 trigonal pyramids that share  a cornercorner with one Mg(4)N5 square pyramid, corners with three equivalent Mg(3)N5 square pyramids, corners with four equivalent Mg(1)N4 tetrahedra,  an edgeedge with one Mg(3)N5 square pyramid, and edges with two equivalent Mg(4)N5 square pyramids. There are four inequivalent N sites. In the first N site, N(1) is bonded to one Mg(1), two equivalent Mg(3), two equivalent Mg(4), and one Ru(1) atom to form NMg5Ru octahedra that share corners with two equivalent N(3)Mg5Ru octahedra, corners with two equivalent N(4)Mg5Ru octahedra, corners with two equivalent N(2)Mg3Ru tetrahedra, edges with two equivalent N(1)Mg5Ru octahedra, edges with two equivalent N(3)Mg5Ru octahedra, and edges with four equivalent N(4)Mg5Ru octahedra. The corner-sharing octahedral tilt angles range from 6-14°. In the second N site, N(2) is bonded to one Mg(1), two equivalent Mg(2), and one Ru(1) atom to form NMg3Ru tetrahedra that share corners with two equivalent N(1)Mg5Ru octahedra, corners with two equivalent N(4)Mg5Ru octahedra, corners with six equivalent N(3)Mg5Ru octahedra, and  an edgeedge with one N(2)Mg3Ru tetrahedra. The corner-sharing octahedral tilt angles range from 51-66°. In the third N site, N(3) is bonded to one Mg(1), one Mg(3), one Mg(4), two equivalent Mg(2), and one Ru(1) atom to form NMg5Ru octahedra that share corners with two equivalent N(1)Mg5Ru octahedra, corners with six equivalent N(2)Mg3Ru tetrahedra,  an edgeedge with one N(3)Mg5Ru octahedra, edges with two equivalent N(1)Mg5Ru octahedra, and edges with three equivalent N(4)Mg5Ru octahedra. The corner-sharing octahedral tilt angles range from 6-7°. In the fourth N site, N(4) is bonded to one Mg(1), two equivalent Mg(3), two equivalent Mg(4), and one Ru(1) atom to form NMg5Ru octahedra that share corners with two equivalent N(1)Mg5Ru octahedra, corners with two equivalent N(2)Mg3Ru tetrahedra, edges with two equivalent N(4)Mg5Ru octahedra, edges with three equivalent N(3)Mg5Ru octahedra, and edges with four equivalent N(1)Mg5Ru octahedra. The corner-sharing octahedral tilt angles range from 11-14°. is represented by the CIF file [CIF]
data_Mg4RuN4
_symmetry_space_group_name_H-M   'P 1'
_cell_length_a   5.419
_cell_length_b   5.439
_cell_length_c   8.418
_cell_angle_alpha   67.791
_cell_angle_beta   80.409
_cell_angle_gamma   70.587
_symmetry_Int_Tables_number   1
_cell_volume   216.429
_cell_formula_units_Z   2
loop_
 _symmetry_equiv_pos_site_id
 _symmetry_equiv_pos_as_xyz
  1  'x, y, z'
loop_
 _atom_site_type_symbol
 _atom_site_label
 _atom_site_symmetry_multiplicity
 _atom_site_fract_x
 _atom_site_fract_y
 _atom_site_fract_z
 _atom_site_occupancy
  Mg  Mg0  1  0.734  0.628  0.210  1.0
  Mg  Mg1  1  0.266  0.372  0.790  1.0
  Mg  Mg2  1  0.734  0.264  1.000  1.0
  Mg  Mg3  1  0.266  0.736  0.000  1.0
  Mg  Mg4  1  0.737  0.468  0.585  1.0
  Mg  Mg5  1  0.263  0.532  0.415  1.0
  Mg  Mg6  1  0.254  0.936  0.591  1.0
  Mg  Mg7  1  0.746  0.064  0.409  1.0
  Ru  Ru8  1  0.745  0.853  0.776  1.0
  Ru  Ru9  1  0.255  0.147  0.224  1.0
  N  N10  1  0.990  0.680  0.614  1.0
  N  N11  1  0.010  0.320  0.386  1.0
  N  N12  1  0.849  0.863  0.969  1.0
  N  N13  1  0.151  0.137  0.031  1.0
  N  N14  1  0.505  0.604  0.795  1.0
  N  N15  1  0.495  0.396  0.205  1.0
  N  N16  1  0.510  0.823  0.379  1.0
  N  N17  1  0.490  0.177  0.621  1.0
[/CIF]
.