A key question in microbial ecology is what the driving forces behind the persistence of large biodiversity in natural environments are. We studied a microbial community with more than 100 different types of species which evolved in a 15-years old bioreactor with benzene as the main carbon and free energy source and nitrate as the electron acceptor. We demonstrate that only a few community members are able to degrade benzene, and that most of the others feed on the metabolic left-overs or on the contents of dead cells making up a food web with different trophic levels. As a result of niche partitioning, a high species richness is maintained and the complexity of a natural community is stabilized in a relatively simple environment. This view highlights the importance of species interactions and interdependencies, which drive microbial community structure and function. These mechanisms may well be conserved across ecosystems.