The structural variations along the solid solution Sr2−x Ba x MgSi2O7 (0 ≤ x ≤ 2), combined to the high-pressure characterization of the two end-members, have been studied. A topological change from the tetragonal (melilite-type) to the monoclinic (melilite-related) structure along the join Sr2MgSi2O7 (e.g., $$ P\bar{4}2_{1} m $$ )–Ba2MgSi2O7 (e.g., C2/c) occurs with a Ba content higher than 1.6 apfu. Favored in the crystallization from a melt, the tetragonal form has a tetrahedral sheet topology exclusively based on five-membered rings, which provide a regular “4 up + 4 down” ligand arrangement. In contrast, the melilite-related structure, favored by solid-state reaction synthesis, is made by alternating six- and four-membered tetrahedral rings, which give an asymmetric arrangement of alternated “5 up + 3 down” and “3 up + 5 down” ligands around Sr or Ba. This latter configuration is characterized by an additional degree of freedom with Ba polyhedra hosted in the interlayer with a more irregular and compact coordination and longer Ba–O bond distances. Further insights into the relationships between the two melilite typologies were achieved by investigating the in situ high-pressure behavior of these systems. The synchrotron high-pressure experiments allowed to calculate the elastic moduli for the Sr melilite-type end-member and for the Ba monoclinic polymorph (Sr2MgSi2O7: K T0 = 107, K a=b = 121, and K c = 84 GPa; m-Ba2MgSi2O7: K T0 = 85, K a = 96, K b = 72, and K c = 117 GPa) and compare them with those reported in the literature for akermanite (Ca2MgSi2O7). The results show that, although the volume of Ba polyhedron in tetragonal polymorphs is larger than in the monoclinic forms, the interlayer compressibility is significantly lower in the former structures due to the occurrence of very short Ba–O distances. This unfavored Ba environment also makes tetragonal Ba2MgSi2O7 a metastable phase at room conditions, possibly favored by high pressure. However, no phase transition occurs from monoclinic to tetragonal form due to kinetic hindrance in reconstructing the sheet topology.