Magnesium bis(trifluoromethanesulfonyl)amide (Mg(TFSA)2)/glyme solutions are promising electrolytes for rechargeable magnesium batteries, but the passivation of the Mg electrode because of the decomposition of [TFSA]− anion from the coordination state is a critical issue in practical use. In the present study, functionalized nanofiber gel electrolytes swollen in 0.5 M Mg(TFSA)2/triglyme solution were prepared using the silica nanofibers modified with oxymagunesium chloride (–OMgCl) groups (f-SiO2NFs) as a gelator. The f-SiO2NF gel electrolyte improved the Mg plating/stripping reaction compared to the SiO2NF gel without –OMgCl groups.