A short and general route to the substituted dipyridylcyclopentenes was explored and several new compounds belonging to this new group of diarylethenes were synthesized. The study of their photochromic and thermochromic properties shows that the rate of the thermal ring opening is strongly dependent on the polarity of the solvent.