The Mg-O coordination environment of silicate glasses of composition CaMgSi2O6, Na2MgSi3O8, and K2MgSi5O12 is probed using ultrahigh-field (35.2 T) 25Mg magic angle spinning nuclear magnetic resonance (MAS NMR) and triple-quantum MAS NMR spectroscopy. These spectra clearly reveal the coexistence of 4-fold- (MgIV) and 6-fold- (MgVI) coordinated Mg in all glasses. The MgIV/MgVI ratio implies an average Mg-O coordination number of ∼5 for CaMgSi2O6 glass, bringing NMR results for the first time in good agreement with those reported in previous studies based on diffraction and X-ray absorption spectroscopy, thus resolving a decade-long controversy regarding Mg coordination in alkaline-earth silicate glasses. The Mg-O coordination number decreases to ∼4.5 in the alkali-Mg silicate glasses, indicating that Mg competes effectively with the low field strength alkali cations for the nonbridging oxygen in the structure to attain tetrahedral coordination. This work illustrates the promise of ultrahigh-field NMR spectroscopy in structural studies involving nuclides with low gyromagnetic ratio.