The NSHCNF@STiO2 composite is synthesized by a two-step process. The process includes a hydrothermal reaction followed by a calcination treatment. The composite possesses unique core-shell structure and improved conductivity. The obtained anodes show great electrochemical performance for both SIBs and LIBs.