Our findings highlight the importance of sheep and goats as sources of virulence genes and MDR E. coli. From a public health and veterinary medicine perspective, the characterization of ESBL producers originating from small livestock (sheep and goats) is crucial due to their close contact with humans.