Two dithienylpyrroles based on azo dyes, namely 2,5'-dimethyl-[4-(2,5-di-thiophen-2-yl-pyrrol-1-yl)-phenyl]azobenzene (SNS-AB2) and 2,5'- dimethyloxy-[4-(2,5-di-thiophen-2-yl-pyrrol-1-yl)phenyl]azobenzene (SNS-AB3), were synthesized and their corresponding polymers (PSNS-AB2 and PSNS-AB3) were successfully obtained via electropolymerization. The monomers have lower oxidation potentials (0.75 V and 0.80V vs. Ag/AgCl for SNS-AB2 and SNS-AB3, respectively) when compared to their analogous. Both monomers exhibited photoisomerism properties under irradiation at 360 nm. During the irradiation process, for example, the color of SNS-AB3 changes from yellow to greenish yellow. The electroactive polymer films have well defined and reversible redox couples with a good cycle stability in both aqueous and organic solutions. The polymer films also exhibited electrochromic behaviors; color changes from yellowish green to dark green for the PSNS-AB2 (lambda(max) = 435 nm and E-g = 2.31 eV) and from mustard color to green for PSNS-AB3 (lambda(max) = 430nm and E-g = 2.34 eV). Furthermore, the soluble polymers demonstrated different hues of yellow and green colors. (C) 2008 Elsevier Ltd. All rights reserved.