The compound is prepared by aldol condensation between 4-dimethylaminobenzaldehyde (I) and imidazolyl acetophenone (II) in the presence of NaOH in methanol.