Functionalised photoswitches – photochromic dithienylcyclohexenes were prepared in two steps initiated by a cobalt-mediated Diels–Alder reaction of internal alkynes with isoprenylpinacolboronic ester.