Imidazole is a heterocyclic organic compound containing two nitrogen atoms separated by a carbon atom in a five-membered ring, called 1,3-diazole whereas triazole is either of two isomeric heterocyclic compounds having a five-membered ring with three nitrogen atoms and two double bonds in the ring.