Mountain pine beetles have killed millions of lodgepole pines across western North America since the 1990s, but some trees have proved more resilient than others. New research suggests part of the difference is genetic and that the resistance can be passed from one generation of trees to the next.