Two series of novel hybrid heterocyclic compounds that combine the imidazole ring with bioactive piperidine, morpholine or piperazine heterosystems, through a hydrazone unit, were easily obtained by two competitive pathways. Starting from 5-amino-4-cyanoformimidoyl imidazoles and 1-aminopiperidine, 4-aminomorpholine or 1-amino-4-methylpiperazine under mild acidic media led to the selective synthesis of 5-aminoi...