In this research, new donor–acceptor (D‐A) photovoltaic polymers were synthesized from dithieno[3,2‐b:2′,3′‐d]pyrrole electron donor derivatives, including N‐benzoyldithieno[3,2‐b:2′,3′‐d]pyrrole and N‐(4‐hexylbenzoyl)dithieno[3,2‐b:2′,3′‐d]pyrrole, in combination with the electron deficient unit 2,5‐bis(2‐ethylhexyl)‐3,6‐di(thiophen‐2‐yl)‐2,5‐dihydropyrrolo[3,4‐c]pyrrole‐1,4‐dione via direct (hetero)arylation polymerization. The D‐A conjugated polymers obtained were characterized via 1H NMR, gel permeation chromatography, Fourier transform infrared spectroscopy, DSC, XRD, photoluminescence and UV–visible methods. In addition, these D‐A polymers were used as activated layers in bilayer and bulk heterojunction structures for the fabrication of organic photovoltaic cells. © 2019 Society of Chemical Industry