The effect of apramycin treatment on transfer and selection of an Escherichia coli strain (E. coli 912) in the intestine of pigs was analyzed through an in vivo experiment. The strain was sequenced and assigned to the sequence type ST101 and serotype O11. It carried resistance genes to apramycin/gentamicin, sulphonamide, tetracycline, hygromycin B, β-lactams and streptomycin [aac(3)-IV, sul2, tet(X), aph(4), blaTEM-1 and strA/B], with all but tet(X) located on the same conjugative plasmid. Nineteen pigs were randomly allocated into two inoculation groups, one treated with apramycin (pen 2) and one non-treated (pen 3), along with a non-inoculated control group (pen 1). Two pigs of pen 2 and 3 were inoculated intragastrically with a rifampicin resistant variant of the strain. Apramycin treatment in pen 2 was initiated immediately after inoculation. Strain colonization was assessed in the feces from all pigs. E. coli 912 was shown to spread to non-inoculated pigs in both groups. The selective effect did not persist beyond 3 days post-treatment, and the strain was not detected from this time point in pen 2. We demonstrated that E. coli 912 was able to spread between pigs in the same pen irrespective of treatment, and apramycin treatment resulted in significantly higher counts compared to the non-treated group. This represents the first demonstration of how antimicrobial treatment affects spread of resistant bacteria in pig production. The use of apramycin may lead to enhanced spread of gentamicin-resistant E. coli. Since gentamicin is a first-choice drug for human bacteremia, this is of concern.Electronic supplementary materialThe online version of this article (doi:10.1186/s13567-015-0291-z) contains supplementary material, which is available to authorized users.