In recent researches of catalytic materials, ternary sulfides have shown excellent electrochemical performance. In this study, NiCo2S4 nanotube arrays were grown in situ on nickel foam by using a two-step hydrothermal method, and optimized the growth morphology of the nanotube arrays by adjusting the raw material concentration. The Ni foam is selected as a suitable conductive substrate, combining its excellent chemical properties and nanostructures, finally a NiCo2S4 nanotube/Ni foam with outstanding catalytic properties is formed. The photoelectric conversion efficiency (PCE) of dye-sensitized solar cells (DSSCs) with NiCo2S4 nanotubes/Ni foam counter electrode (CE) has reached 8.29%, which is exceeding that of Pt CE (7.48%), indicating that NiCo2S4 nanotubes/Ni foam CE has a bright development prospect.