The Wittig reaction or Wittig olefination is a chemical reaction of an aldehyde or ketone with a triphenyl phosphonium ylide called a Wittig reagent. Wittig reactions are most commonly used to convert aldehydes and ketones to alkenes. Most often, the Wittig reaction is used to introduce a methylene group using methylenetriphenylphosphorane (Ph3P=CH2). Using this reagent, even a sterically hindered ketone such as camphor can be converted to its methylene derivative. Stereochemistry For the reaction with aldehydes, the double bond geometry is readily predicted based on the nature of the ylide. With unstabilised ylides (R3 = alkyl) this results in (Z)-alkene product with moderate to high selectivity. With stabilized ylides (R3 = ester or ketone), the (E)-alkene is formed with high selectivity. The (E)/(Z) selectivity is often poor with semistabilized ylides (R3 = aryl). To obtain the (E)-alkene for unstabilized ylides, the Schlosser modification of the Wittig reaction can be used. Alternatively, the Julia olefination and its variants also provide the (E)-alkene selectively. Ordinarily, the Horner–Wadsworth–Emmons reaction provides the (E)-enoate (α,β-unsaturated ester), just as the Wittig reaction does. To obtain the (Z)-enolate, the Still-Gennari modification of the Horner-Wadsworth-Emmons reaction can be used. Reaction mechanism Mechanistic studies have focused on unstabilized ylides, because the intermediates can be followed by NMR spectroscopy. The existence and interconversion of the betaine (3a and 3b) is subject of ongoing research. For lithium-free Wittig reactions, studies support a concerted formation of the oxaphosphetane without intervention of a betaine. In particular, phosphonium ylides 1 react with carbonyl compounds 2 via a [2+2] cycloaddition that is sometimes described as having [π2s+π2a] topology to directly form the oxaphosphetanes 4a and 4b. Under lithium-free conditions, the stereochemistry of the product 5 is due to the kinetically controlled addition of the ylide 1 to the carbonyl 2. When lithium is present, there may be equilibration of the intermediates, possibly via betaine species 3a and 3b. Bruce E. Maryanoff and A. B. Reitz identified the issue about equilibration of Wittig intermediates and termed the process "stereochemical drift". For many years, the stereochemistry of the Wittig reaction, in terms of carbon-carbon bond formation, had been assumed to correspond directly with the Z/E stereochemistry of the alkene products. However, certain reactants do not follow this simple pattern. Lithium salts can also exert a profound effect on the stereochemical outcome. Mechanisms differ for aliphatic and aromatic aldehydes and for aromatic and aliphatic phosphonium ylides. Evidence suggests