Methyl (2Z)-[2[(diaminomethylene)amino]-4-oxothiazol-5(4H)-ylidene]acetate was obtained by the reaction of N-amidinothiourea and dimethyl acetylenedicarboxylate (DMAD) under various conditions: methanol, ethanol, acetonitrile, ethyl acetate, dioxane, acetic acid, ethanol/TsOH. The structure of the product has been proven by X-ray diffraction analysis. A series of new N-(5-R-1,3,5-triazinan-2-ylidene)-N-1,3-thiazol-2-amines was obtained as a result of the multicomponent condensation of methyl (2Z)-[2[(diaminomethylene)amino]-4oxothiazol-5(4H)-ylidene]acetate with alkylamines and formaldehyde.