Cavities are generally caused by the presence of bad bacteria in the mouth. They can also be caused by the foods and drinks that we consume. Soda, most definitely, can contribute to the development of caries. This is because soda is very acidic, and cavities can develop from low (acidic) pH levels. This is why brushing and flossing alone, will not prevent most cavities. It is important to watch what you eat and drink. Highly acidic foods and drinks cause the erosion of enamel and the formation of cavities. Foods and drinks such as candy, soda, wine, coffee and tea have low pH levels. Other foods such as bread, cheese, and milk have higher (more basic) pH levels and are less damaging to tooth structure. Tap water, in comparison, has an even higher pH level than these foods.
There are some treatments that can protect your teeth and decrease the risk of cavities. Professional Fluoride treatments can guard against demineralization of tooth structure. Sealants can help as well. Sealants are protective tooth colored coatings that are placed in the grooves of the back teeth. These products are beneficial for children and adults.