Community dynamics are often studied in subsets of pairwise interactions. Scaling pairwise interactions back to the community level is, however, problematic because one given interaction might not reflect ecological and evolutionary outcomes of other functionally similar species interactions or capture the emergent eco-evolutionary dynamics arising only in more complex communities. Here we studied this experimentally by exposing Pseudomonas fluorescens SBW25 prey bacterium to four different protist predators (Tetrahymena pyriformis, Tetrahymena vorax, Chilomonas paramecium and Acanthamoeba polyphaga) in all possible single-predator, two-predator and four-predator communities for hundreds of prey generations covering both ecological and evolutionary timescales. We found that only T. pyriformis selected for prey defence in single-predator communities. Although T. pyriformis selection was constrained in the presence of the intraguild predator, T. vorax, T. pyriformis selection led to evolution of specialised prey defence strategies in the presence of C. paramecium or A. polyphaga. At the ecological level, adapted prey populations were phenotypically more diverse, less stable and less productive compared with non-adapted prey populations. These results suggest that predator community composition affects the relative importance of ecological and evolutionary processes and can crucially determine when rapid evolution has the potential to change ecological properties of microbial communities.