The cyclocondensation of aromatic o-halo ketones and o-halo nitriles with ethyl 3,3-diaminoacrylate proceeds as the replacement of the aromatic halogen by the alpha-carbon atom of the enediamine, while the amino group of the enediamine is bound by the alpha-carbon atom of the ketone or nitrile group.