On account of increasing demand for high-efficiency energy storage devices, supercapacitors (SCs) are gaining extensive attention. Several strategies have been employed to improve the performance of SCs through the development of new electrode materials. Due to their abundant diversity in structure and composition, metal-organic frameworks (MOFs) have flourished as ideal precursors for the design and fabrication of nanostructured porous carbon, metal-based compounds and their composites. Herein, we develop a facile solution and vapor-phase approach to synthesize MOF-derived porous carbon-encapsulated CoSe2 nanowires grown on carbon cloth. In the synthesis, the Co-precursor nanowires are firstly prepared through a solvothermal process. The MOFs with well-aligned nanowires morphologies are successfully grown on carbon clothes though a vapor-phase approach using Co-precursor as a self-sacrificial template. The porous carbon encapsulated CoSe(2) nanowires are obtained after a selenylation process. The porous carbon encapsulated CoSe(2) nanowires can provide the efficiently redox chemistry for high capacitance and the enhanced pathway for ion diffusion, as well as high electrical conductivity in the charge and discharge process. A flexible supercapacitor can be further assembled using porous carbon encapsulated CoSe2 and porous carbon electrodes, which demonstrates an energy density of 23.4 Wh kg(-1) at the power density of 27.2 kW kg(-1).