A fluoride ion-mediated continuous etching-redeposition strategy to synthesize Si nanocomposites with appropriate SiO2 coating layers for Li-ion batteries.