Bacteria–phage coevolution, the reciprocal evolution between bacterial hosts and the phages that infect them, is an important driver of ecological and evolutionary processes in microbial communities. There is growing evidence from both laboratory and natural populations that coevolution can maintain phenotypic and genetic diversity, increase the rate of bacterial and phage evolution and divergence, affect community structure, and shape the evolution of ecologically relevant bacterial traits. Although the study of bacteria–phage coevolution is still in its infancy, with open questions regarding the specificity of the interaction, the gene networks of coevolving partners, and the relative importance of the coevolving interaction in complex communities and environments, there have recently been major advancements in the field. In this review, we sum up our current understanding of bacteria–phage coevolution both in the laboratory and in nature, discuss recent findings on both the coevolutionary process itself and the impact of coevolution on bacterial phenotype, diversity and interactions with other species (particularly their eukaryotic hosts), and outline future directions for the field.