We all have bacteria that live in our mouths. When certain types of bacteria come in contact with the sugary foods in our diet an acid is produced. The acid attacks the enamel layer of our teeth and causes demineralization of the enamel which eventually leads to little holes in the teeth, called cavities.