1. Shifts in bacterial community composition along temporal and spatial temperature gradients occur in a wide range of habitats and have potentially important implications for ecosystem functioning.