A novel method for the preparation of imidazolines and benzimidazoles bearing an amide at the 2-position, is described. The reactions of the glyoxamide with aliphatic and aromatic 1,2-diamines were found to form five-membered imidazolines and benzimidazoles by a one-pot condensation-oxidation procedure.