Plant roots nurture a tremendous diversity of microbes via exudation of photosynthetically fixed carbon sources. In turn, probiotic members of the root microbiome promote plant growth and protect the host plant against pathogens and pests. In the Arabidopsis thaliana-Pseudomonas simiae WCS417 model system, the root-specific transcription factor MYB72 and the MYB72-controlled β-glucosidase BGLU42 emerged as important regulators of beneficial rhizobacteria-induced systemic resistance (ISR) and iron uptake responses. MYB72 regulates the biosynthesis of iron-mobilizing fluorescent phenolic compounds after which BGLU42 activity is required for their excretion into the rhizosphere. Metabolite fingerprinting revealed the antimicrobial coumarin scopoletin as a dominant metabolite that is produced in the roots and excreted into the rhizosphere in a MYB72- and BGLU42-dependent manner. Shotgun-metagenome sequencing of root-associated microbiota of Col-0, myb72, and the scopoletin biosynthesis mutant f6’h1 showed that scopoletin selectively impacts the assembly of the microbial community in the rhizosphere. We show that scopoletin selectively inhibits the soil-borne fungal pathogens Fusarium oxysporum and Verticillium dahliae, while the growth-promoting and ISR-inducing rhizobacteria P. simiae WCS417 and Pseudomonas capeferrum WCS358 are highly tolerant to the antimicrobial effect of scopoletin. Collectively, our results demonstrate a role for coumarins in microbiome assembly and point to a scenario in which plants and probiotic rhizobacteria join forces to trigger MYB72/BGLU42-dependent scopolin production and scopoletin excretion, resulting in improved niche establishment for the microbial partner and growth and immunity benefits for the host plant.