This is the final version of the article. Available from Springer Nature via the DOI in this record.Local adaptation of a species can affect community composition, yet the importance of local adaptation compared with species presence per se is unknown. Here we determine how a compost bacterial community exposed to elevated temperature changes over 2 months as a result of the presence of a focal bacterium, Pseudomonas fluorescens SBW25, that had been pre-adapted or not to the compost for 48 days. The effect of local adaptation on community composition is as great as the effect of species presence per se, with these results robust to the presence of an additional strong selection pressure: an SBW25-specific virus. These findings suggest that ...