Interaction of β -thiocyanatovinyl aldehydes with N-amino heterocycles leads to formation of α, β -unsaturated hydrazonium salts dependent on the functional surroundings. The latter can undergo further intramolecular cyclocondensation giving rise to N, N -linked isothiazolium salts as the final product. The isolated hydrazonium salts, not undergoing ring formation, have s-trans conformation of the azadiene system.