Many medical conditions are linked with an increased risk of cavities, and one of the most common is acid reflux. Even with good oral hygiene, acid reflux can cause damage to the teeth because the reflux of acid into the esophagus eventually reaches the mouth. When stomach acids regularly wash over the teeth, it leads to enamel loss. Approximately one out of four patients with acid reflux also have tooth erosion. Autoimmune diseases like Sjogren's syndrome, which attacks the glands that produce tears and saliva, can also impact dental health. Dry mouth, which diabetes can cause, allows bacteria to grow out of control and attack the teeth. Even celiac disease, which damages the small intestine, can cause cavities. Along with gastrointestinal symptoms, celiac disease is responsible for tooth discoloration and defects in the enamel, which makes it easy for bacteria to attack the teeth and cause cavities.