Among the many strains of E. coli, only a few trigger diarrhea. One group of E. coli — which includes O157:H7 — produces a powerful toxin that damages the lining of the small intestine, which can cause bloody diarrhea. You develop an E. coli infection when you ingest this strain of bacteria. Unlike many other disease-causing bacteria, E. coli can cause an infection even if you ingest only small amounts. Because of this, you can be sickened by E. coli from eating a slightly undercooked hamburger or from swallowing a mouthful of contaminated pool water. Potential sources of exposure include contaminated food or water and person-to-person contact.