Abstract The intertwined TiN nanofibers with mesopores structure were fabricated by an electrospinning method followed by a nitridation reaction TiN nanofibers counter electrodes (CEs) based DSC delivered dramatically enhanced photovoltaic performances  compared with particulate TiN CE