Abstractmagnified imageTreatment of 2‐cyano‐3‐phenyl‐2‐pentenedinitrile with some heterocyclic diazonium salts afforded the corresponding heterocyclic hydrazones. Some of the latter hydrazones were converted into fused polyaza‐heterocycles upon boiling in pyridine. Reaction of 2‐cyano‐3‐phenyl‐2‐pentenedinitrile with phenylisothiocyanate gave a tricyano‐thiole derivative which on treatment with hydrazonoyl chlorides and 1‐(benzothiazol‐2‐yl)‐2‐bromoethanone furnished 1,3,4‐thiadiazole and thiazole derivatives, respectively.