Plants forage soil for water and nutrients, whose distribution is patchy and often dynamic. To improve their foraging activities, plants have evolved mechanisms to modify the physicochemical properties and microbial communities of the rhizosphere, i.e. the soil compartment under the influence of the roots. This dynamic interplay in root-soil-microbiome interactions creates emerging properties that impact plant nutrition and health. As a consequence, the rhizosphere can be considered an extended root phenotype, a manifestation of the effects of plant genes on their environment inside and/or outside of the organism. Here, we review current understanding of how plants shape the rhizosphere and the benefits it confers to plant fitness. We discuss future research challenges and how applying their solutions in crops will enable us to harvest the benefits of the extended root phenotype.