The present invention relates to a process for preparing pyrethroids of formula (I) in all stereochemical configuration as well as their mixtures wherein X1 and X2 are the same or different and are selected from hydrogen, (C1-C4) alkyl, (C2-C4) alkenyl and halogen; Z is a group selected from: . wherein R1 is hydrogen, methyl or-CN, n is an integer from 1 to 5, m is (5-n), Y is hydrogen, (C1-C4)alkyl or (C2-C5)alkoxy(C1-C4)alkyl and wherein R2 is hydrogen, methyl or -CN comprising the steps of: a) preparing an organic solution of an acid of formula (II) in a suitable organic solvent b) preparing an organic solution of an alcohol of formula (III) in a suitable organic solvent and in the presence of dicyclohexylcarbodiimide (DCC) of formula (IV), and a N,N'-dialkylpyridine catalyst of formula (V) wherein R3 is (C1-C4) alkyl; and c) reacting the organic solution of step a) with the organic solution of step b) by adding the organic solution of the acid of formula (II) of step a) to the organic solution of step b) comprising the alcohol (III).