Heterocyclic allyl sulphides 1–6 react with an excess of ethyl diazoacetate in the presence of copper(I)exafluorophosphate acetonitrile complex in dichloromethane under mild conditions to give, through the formation of homoallylic sulphides intermediates, conjugated dienoic esters in high yields.