Earthworms reduce the dissemination potential of antibiotic resistance genes by changing bacterial co-occurrence patterns in soil.