Oxyfluoride glasses in the systems (55 − x)SiO 2 −(15 + x − z)Al 2 O 3 −zLa 2 O 3 −10CaO−20CaF 2 −yErF 3 (x = 0, 5, 10, 15; y = 0.5, 1, 1.5; z = 0, 2, 5 mol %) were prepared by conventional melt-quenching method and afterward heated to synthesize transparent glass ceramics containing CaF 2 nanocrystals. The local structures of glasses and glass ceramics were characterized by advanced one-and two-dimensional solid-state nuclear magnetic resonance (SSNMR) techniques. La 3+ ions were investigated as the diamagnetic mimics for paramagnetic rare-earth ions (REIs) in local structure. The bond connectivities between F − ions and positive ions were probed by 19 F magic angle spinning (MAS) NMR spectra and 19 F { 27 Al} double-resonance techniques. F − ions have bond connectivities with Ca 2+ , La 3+ , and Al 3+ ions, respectively. Ca 2+ ions have comparable competition ability in capturing F − ions with La 3+ ions, but stronger than Al 3+ ions. Multiple F−Al linkages exist in the glasses. 19 F static spin echo decay results indicate that F − ions aggregate around Ca 2+ ions forming F−Ca linkages-enriched microregions, which form the precursors of CaF 2 nanocrystals. However, both La 3+ and Al 3+ ions can disperse the distribution of F − ions around Ca 2+ ions and consequently suppress the crystallization of CaF 2 . 139 La wideband uniform-rate smooth truncation QCPMG (WURST-QCPMG) spectra and the paramagnetic effects of Er 3+ on the NMR spectra were measured to reveal the distribution of REIs. The average local environments of most REIs have no significant change during the crystallization of CaF 2 . Only partial REIs have entered CaF 2 nanocrystals after the crystallization, which results in the intensive Er 3+ upconversion luminescence. The glass structural evolution during the crystallization is investigated by the evolution of the 19 F, 27 Al, 29 Si, and 139 La NMR spectra with the heat treatment conditions. On the basis of the comprehensive glass structure study at the atomic level, the microcrystallization mechanisms of the glasses are revealed.