A novel electroactive monomer 5,8-di(1H-pyrrol-2-yl)-2,3-di(thiophen-2-yl)quinoxaline (PTQ) was successfully synthesized and its electrochromic properties were reported. Nuclear magnetic resonance (1H NMR–13C NMR) and mass spectroscopy were used to characterize the monomer. The monomer was electrochemically polymerized in the presence of tetrabutylammonium perchlorate (TBAP) as supporting electrolyte in dichloromethane. Monomer reveals relatively low oxidation potential at +0.70V. Spectroelectrochemical behaviors and switching ability of homopolymer were investigated by UV–vis spectroscopy and cyclic voltammetry. Two π–π* transitions were observed at 400 and 815nm with a low band gap, 1.0eV. Polymer possesses 66% optical contrast in the Near IR region, which may be promising in NIR electrochromic device applications.