Ring-closing metathesis is a widely used chemical transformation that can generate organic macrocycle compounds; here, an approach is described by which the E-stereoisomer of a macrocycle is generated selectively, exemplified by synthesizing the antibiotic recifeolide and the anti-cancer drug pacritinib. Olefin metathesis reactions are important in synthetic organic chemistry and were recognized with a Nobel Prize in 2005. Controlling which isomer (E or Z) is produced during the reaction can be vital, particularly at late stages in multistep syntheses, or when the product is sensitive to further reactions intended to convert to a single isomer. As Z-isomers are thermodynamically favoured, routes to form E-isomers directly are particularly valuable and, when this is applied to ring-closing reactions, the additional challenge of having equimolar amounts of each coupling partner by default means that typical reagent-excess strategies cannot be used. Now, Amir Hoveyda and colleagues report a catalyst system for direct and selective E-alkene formation in ring-closing metathesis reactions, exemplified by the synthesis of pacritinib and recifeiolide in E/Z ratios greater than 98/2. Macrocyclic compounds are central to the development of new drugs, but preparing them can be challenging because of the energy barrier that must be surmounted in order to bring together and fuse the two ends of an acyclic precursor such as an alkene (also known as an olefin)1. To this end, the catalytic process known as ring-closing metathesis (RCM)2,3,4 has allowed access to countless biologically active macrocyclic organic molecules, even for large-scale production5. Stereoselectivity is often critical in such cases: the potency of a macrocyclic compound can depend on the stereochemistry of its alkene; alternatively, one isomer of the compound can be subjected to stereoselective modification (such as dihydroxylation6). Kinetically controlled Z-selective RCM reactions have been reported7,8,9,10, but the only available metathesis approach for accessing macrocyclic E-olefins entails selective removal of the Z-component of a stereoisomeric mixture by ethenolysis10, sacrificing substantial quantities of material if E/Z ratios are near unity. Use of ethylene can also cause adventitious olefin isomerization—a particularly serious problem when the E-alkene is energetically less favoured. Here, we show that dienes containing an E-alkenyl–B(pinacolato) group, widely used in catalytic cross-coupling11, possess the requisite electronic and steric attributes to allow them to be converted stereoselectively to E-macrocyclic alkenes. The reaction is promoted by a molybdenum monoaryloxide pyrrolide complex and affords products at a yield of up to 73 per cent and an E/Z ratio greater than 98/2. We highlight the utility of the approach by preparing recifeiolide (a 12-membered-ring antibiotic)12,13 and pacritinib (an 18-membered-ring enzyme inhibitor)14,15, the Z-isomer of which is less potent than the E-isomer16. Notably, the 18-membered-ring moiety of pacritinib—a potent anti-cancer agent that is in advanced clinical trials for treating lymphoma and myelofibrosis—was prepared by RCM carried out at a substrate concentration 20 times greater than when a ruthenium carbene was used.