The synthesis of new photoswitchable dipyrrolylethenes having different π-conjugated chain lengths, employing Wittig–Horner reaction, Knoevenagel condensation, Suzuki palladium catalyzed cross-coupling or Sonogashira coupling, is reported. Their photochemical behaviour, and in particular, their thermal stability has been investigated upon continuous irradiation with light of appropriate wavelengths