Soil is the most species-rich microbial ecosystem in the world. From this incredible diversity, plants specifically choose certain species, give them access to the root and so host a unique, carefully selected bacterial community from which they then benefit in a variety of ways. To achieve this, the plant’s immune system must be able to tell which of these bacteria are friends and which foes.