A simple and economical synthesis of cimetidine is described. It is based on the reaction of 4-halomethyl-5-methylimidazole with N-cyano-N'-methyl-N''-(2 mercaptoethyl)guanidine in water-ethanol at pH 9.0 ± 0.3. Pure crystalline cimetidine is obtained in about 75% yield.