Bacteria in the digestive system break down nutrients, such as complex sugars, into forms the body can use. Non-hazardous bacteria also help prevent diseases by occupying places that the pathogenic, or disease-causing, bacteria want to attach to. Some bacteria protect us from disease by attacking the pathogens.