Hollow N-doped Fe3O4/C nanocages were prepared by carbonizing PB@ PDA directly.
The nanocomposites exhibit superior electrochemical performance.
Hierarchically porous structure improves the transfer of Li+.
The N-doped carbon matrix buffers the volume variation of Fe3O4.