An in-depth evolutionary analysis of whole-genome sequences of different types of avian flu viruses has revealed that new H7N9 viruses emerged from distinct H9N2 viruses in a two-step process, first occurring in wild birds and then continuing in domestic birds.