Reactions of amino-, nitroamino- and diaminoguanidine (I, II, III) with acetylpyruvic acid ethyl ester (IV) at varying pH of the medium were studied. It was found that the nucleophilic hydrazine NH2 group of compounds I, II, and III) attacks the keto group of ester IV in position gamma or alpha. The newly synthesized compounds were submitted to biological evaluation.