What causes cavities? The answer: SO MANY THINGS. In fact, it's an extremely complex disease. And it's a disease of the person, not the tooth. In spite of everything you do to prevent cavities, sometimes BAD LUCK will have it that you get a cavity anyways. Fortunately, there are strategies to nip things in the bud stage as to prevent root canals, toothaches, and extractions.