Covalent organic frameworks (COFs) are of great interest in the energy and optoelectronic fields due to their high porosity, superior thermal stability, and highly ordered conjugated architecture, which are beneficial for charge migration, charge separation, and light harvesting. In this study, polyimide COFs (PI-COFs) are synthesized through the condensation reaction of pyromellitic dianhydride (PMDA) with tris(4-aminophenyl) amine (TAPA) and then doped in the TiO 2 photoelectrode of a dyesensitized solar cell (DSSC) to co-work with N719 dye to explore their functionality. As a benchmark, the pristine DSSC without the doping of PI-COFs exhibits a power conversion efficiency of 9.05% under simulated one sun illumination. The doping of 0.04 wt % PI-COFs contributes an enhanced short-circuit current density (J SC ) from 17.43 to 19.03 mA/cm 2 , and therefore, the cell efficiency is enhanced to 9.93%. The enhancement of J SC is attributed to the bifunctionality of PI-COFs, which enhances the charge transfer/injection and suppresses the charge recombination through the host (PI-COF)−guest (N719 dye) interaction. In addition, the PI-COFs also function as a cosensitizer and contribute a small quantity of photoinduced electrons upon sunlight illumination. Surface modification of oxygen plasma improves the hydrophilicity of PI-COF particles and reinforces the heterogeneous linkage between PI-COF and TiO 2 nanoparticles, giving rise to more efficient charge injection. As a result, the champion cell exhibits a high power conversion efficiency of 10.46% with an enhanced J SC of 19.43 mA/ cm 2 . This methodology of increasing solar efficiency by modification of the photoelectrode with the doping of PI-COFs in the TiO 2 nanoparticles is promising in the development of DSSCs.