Diverse communities of plants and animals typically perform better than monocultures. However, the mechanisms that are responsible for this have so far been a mystery to science. Biologists have now been able to identify the genetic cause of these effects. Their findings might help to improve crop yield.