Causes. Cavities are caused by tooth decay — a process that occurs over time. Here's how tooth decay develops: 1  Plaque forms. 2  Your mouth naturally contains many types of bacteria. 3  Some thrive on food and drinks that contain certain forms of sugar.