The condensation of 2-nitroimidazole (I) with methyl chloroacetate (II) by means of sodium methoxide in hot DMF gives methyl (2-nitro-1-imidazolyl)acetate (III), which is then treated with ethanolamine (IV) in methanol.
The condensation of 2-nitroimidazole (I) with methyl chloroacetate (II) by means of sodium methoxide in methanol - DMF at 150 C gives methyl 2-nitro-1-imidazolylacetate (III), which is then condensed with benzylamine (IV) in methanol.