Tooth decay is the process in which cavities form. Over 600 forms of known bacteria live in your mouth. Bacteria interact with the food you eat and create acids and toxins that erode tooth enamel. Weakened enamel will eventually concede to bacteria, allowing infection to occur in the dentin.