The growth of three-dimensional (3D) porous NiCo 2 O 4 nanowire arrays on carbon fiber cloth (denoted as NCO@CFC) via a facile low-cost solution method combined with a subsequent annealing treatment is reported. The structure and morphology of the materials were characterized by X-ray diffraction, fieldemission scanning electron microscopy, and transmission electron microscopy. Owing to the unique 3D hierarchical architecture, the NCO@CFC nanowires as flexible electrode material for Lithium-ion batteries exhibit stable cycling performance (92.3% retention after 100 cycles), fairly high rate capacity (507 mAh g -1 at 4000 mA g -1 ), and enhanced lithium storage capacity. When employed as electrode material for Sodium-ion batteries, the NCO@CFC is investigated based on such a 3D ordered array structure and exhibits similar charge/discharge characteristic and feasible electrochemical performance. The greatly improved electrochemical performance could be ascribed to the 3D porous nanostructure of the NCO@CFC nanowire arrays with a novel carbon skeleton, which provides enough space to ease volume expansion during Li + /Na + insertion/extraction process and facilitates rapid transport of ions and electrons.