Polyaniline/carbon nanotube composite fiber was prepared from aligned multi-walled carbon nano- tube fiber coupling with subsequent electrochemical polymerization of aniline. Novel wire-shaped dye-sensitized solar cells were obtained by using the composite fiber as counter electrode. Photovoltaic wire based on the composite fiber showed a conversion efficiency of 3.8%, which is 63% higher than the pure carbon nanotube fiber.