Nat. Chem. Biol. 13, 982–993 (2017); corrected online 7 August 2017; corrected after print 4 October 2017

In the version of this article initially published, the artemisinin structure in Figure 4b was shown with incorrect stereochemistry. The error has been corrected in the HTML and PDF versions of the article.