Phage-plasmids are bacterial extrachromosomal elements that act both as plasmids and as viruses. Here, Shan et al. show that segregational drift and loss-of-function mutations play key roles in the infection dynamics of a cosmopolitan phage-plasmid, allowing …