2-(Trifluoroacetyl)-1,3-azoles readily react with methyl acrylate and acrylonitrile under Baylis-Hillman reaction conditions to afford heterocyclic trifluoromethyl-containing allylic alcohols in 36-97% yields. The thus obtained Baylis-Hillman adducts readily undergo Michael addition reactions with various nucleophiles.