Transition metal oxides are regarded as promising anode materials for lithium-ion batteries because of their high theoretical capacities compared with commercial graphite. Unfortunately, the implementation of such novel anodes is hampered by their large volume changes during the Li(+) insertion and extraction process and their low electric conductivities. Herein, we report a specifically designed anode architecture to overcome such problems, that is, mesoporous peapod-like Co3O4@carbon nanotube arrays, which are constructed through a controllable nanocasting process. Co3O4 nanoparticles are confined exclusively in the intratubular pores of the nanotube arrays. The pores between the nanotubes are open, and thus render the Co3O4 nanoparticles accessible for effective electrolyte diffusion. Moreover, the carbon nanotubes act as a conductive network. As a result, the peapod-like Co3O4 @carbon nanotube electrode shows a high specific capacity, excellent rate capacity, and very good cycling performance.