How does a person get E. coli?

One way E. coli can be contracted is when a person eats food that has been contaminated with animal waste or unsanitary water.