Is sugar the prime cause of cavities?

Some dental health experts have a saying about the link between sugary drinks and dental problems: "Drinking and sneezing all day long." This means that the amount of sugar your teeth are exposed to determines the risk.
Strictly speaking, sugar itself does not cause tooth decay. It is the interaction between plaques - a type of bacteria that develops in the mouth, "phagocytize" sugars for nutrition - and chemical balance in the mouth (called pH or acidity levels). The longer the sugar stays on the teeth, the worse the balance (as acid levels rise) and the easier it is to develop tooth decay.
And not just dessert snacks. All types of carbohydrates - including bread, potatoes, rice, and even fruits and vegetables - trigger chemical shifts stimulated by bacteria.
Although a large number of sugar-consuming children are the main candidates for aging, some elderly people and even older people may have spikes in gum holes. This is not necessarily related to sweets, but to the use of certain drugs. For example, diuretics can reduce saliva production, which helps irrigate the mouth and make it more bacteria-free.