Bacteria in your mouth feast on sugars from food and drinks, producing acids that attack tooth enamel. Over time, this process can lead to cavities, also known as dental caries.