The spreading of antimicrobial-resistant bacteria and genes from food-producing animals to humans has been a subject of increasing concern. To clarify the role of flies in spreading the extended-spectrum β-lactamase (ESBL) gene from food-producing animals to humans, we isolated and characterized a third-generation cephalosporin-resistant Escherichia coli strain from flies and cattle feces from a cattle barn. Cephalosporin-resistant strains were isolated from 14.3% (13/91) of houseflies, 10.3% (7/68) of false stable flies, and 7.5% (7/93) of cattle feces. Twenty-seven cephalosporin-resistant strains were tested for the presence of antimicrobial resistance genes. Of the 27 samples, 22 isolates from 11 houseflies, 5 false stable flies, and 6 cattle feces samples harbored the blaCTX-M-15 gene. All blaCTX-M-15-harboring isolates belonged to phylogenetic group D and the ST38 clonal group. Analysis of pulsed-field gel electrophoresis showed that these isolates were divided into two clusters, indicating that flies carried several of the same clones that were detected in cattle feces. All blaCTX-M-15 gene-harboring plasmids were transferable and were members of incompatibility group FIB. These results suggest that transferable plasmids encoding ESBL were prevalent among flies and cattle. As vectors, flies may play an important role in spreading ESBL-producing bacteria from food-producing animals to humans.