The opium poppy is famous for its ability to produce painkilling molecules. Now, by sequencing its genome, a team of scientists from Australia, China and the United Kingdom uncovered several events in the poppy’s history that, together, could have led to the evolution of its opium-producing behaviour.