A new compound with D-πA structure was synthesized from 4-methylpyridine and 4-imidazolylbenzaldehyde which was obtained by the reaction of imidazole with 4-fluorobenzaldehyde.The structure was characterized by UV,~1H NMR,IR,MS and elemental analysis.