A microporous carbon coated core/shell Si@C nanocomposite prepared by in situ polymerization exhibits a stable capacity of over 1200 mAh g(-1) with 95.6% retention even after 40 cycles, which makes it a promising anode material for lithium ion batteries.