A topotactic synthetic methodology for highly fluorine-doped mesoporous metal oxides.