Abstract The key parameters of conjugated polymers are lowest unoccupied molecular orbital (LUMO) and highest occupied molecular orbital (HOMO) energy levels. Few approaches can simultaneously lower LUMO and HOMO energy levels of conjugated polymers to a large extent (>0.5 eV). Disclosed herein is a novel strategy to decrease both LUMO and HOMO energy levels of conjugated polymers by about 0.6 eV through replacement of a CC unit by a B←N unit. The replacement makes the resulting polymer transform from an electron donor into an electron acceptor, and is proven by fluorescence quenching experiments and the photovoltaic response. This work not only provides an effective approach to tune the LUMO/HOMO energy levels of conjugated polymers, but also uses organic boron chemistry as a new toolbox to develop conjugated polymers with high electron affinity for polymer optoelectronic devices.