Sclerotia of a phytopathogenic fungus restrict microbial diversity and improve soil health by suppressing other pathogens and enriching beneficial microorganisms.