3D hierarchical CuO mesocrystals have been prepared from ionic liquid precursors under hydrothermal conditions, and exhibited superior electrochemical performance as anode materials, which offers a facile route for designing high-performance electrodes for Li-ion batteries.