CN.CN[CH2:5][C:6]1[N:7]=[CH:8][NH:9][C:10]=1[CH3:11].C(N)CCC.C(NCCCC)CCC.C(NCC1N=CNC=1C)CCC.C(N(CC1N=CNC=1C)CCCC)CCC.[NH2:54][CH2:55][CH2:56][SH:57].[ClH:58]>>[ClH:58].[ClH:58].[NH2:54][CH2:55][CH2:56][S:57][CH2:5][C:6]1[N:7]=[CH:8][NH:9][C:10]=1[CH3:11]By the same procedure, using methylamine in place of dimethylamine, 4-(N-methylaminomethyl)-5-methylimidazole is prepared. In the same way, using butylamine and dibutylamine, 4-(N-butylaminomethyl)-5-methylimidazole and 4-(N,N-dibutylaminomethyl)-5-methylimidazole are prepared. Refluxing these intermediates with cysteamine by the above procedure and treating with hydrochloric acid gives 4-(2-aminoethyl)thiomethyl-5-methylimidazole dihydrochloride.