Mesoporous tungsten carbides displayed an excellent solar conversion efficiency (7.01%) as a counter electrode for dye sensitized solar cells under 100 mW cm(-2), AM 1.5G illumination, which corresponded to ca. 85% of the efficiency of the conventional platinum electrode.