In addition to diet, studies have shown that genetics play a significant role in the development of cavities. People with a family history of cavities are more likely to experience cavities than those without these genes. If you have a family history of cavities, speak with your dentist about preventative measures like fluoride treatments and sealants.