The first total synthesis of the sex pheromone of the oleander scale Aspidiotus nerii (5), an economically important polyphagous pest, is described. The synthesis is based on a stereocontrolled and completely regioselective intramolecular exo-cyclization of cis-epoxynitrile 9 to afford cyclobutane alcohol t-10 stereoselectively. Introduction of the unusual 4-methylpent-4-enyl group onto the cyclobutane skeleton was effected through Wittig reaction of aldehyde 17 b with the bulky ylide 3,3-(ethylenedioxy)butylidenetriphenylphosphorane. This process requires pro-tection of the primary hydroxy group of 10 with a nonbulky protecting agent, like methoxymethyl (MOM) but not tetrahydropyranyl (THP), as confirmed by molecular modelling studies. After selective transformations to manipulate the three acid-sensitive protecting functionalities present, that is, the tert-butyldimethylsilyl (TBDMS), ethylene ace-tal, and MOM groups, compound 5 was obtained in 26.4 % overall yield from t-10 b. In a different approach, complete cleavage of these protecting groups in 19 b furnished keto diol 31, which after regioselective acetylation of the primary alcohol and Wittig reaction afforded acetate 5 in 21.4 % overall yield from t-10 b. The synthetic material exhibited spectroscopic features identical to those of the natural material and showed remarkable biological activity in field tests.