Contact with animals that carry the E. coli bacteria may also cause an infection. Cattle are the main sources of common strains of E. coli. But other animals may also carry these bacteria.