The reaction of 2-bromo-2'-hydroxyacetophenone (I) with sodium methylmercaptide in methanol gives 2'-hydroxy-2-(methylthio)acetophenone (II), which is condensed with imidazole (III) by means of SOCl2 in dichloromethane to afford (E)-1-[1-(2-hydroxyphenyl)-2-(methylthio)vinyl]-1H-imidazole (IV), along with some of the (Z)-isomer. Finally, (IV) is condensed with pentyl bromide (V) by means of KOH in DMF.