What causes a cavity?

Bacteria in plaque break down sugars to produce acid. If the acid is not removed, the tooth enamel weakens and then breaks down over time, forming a cavity. Brushing and flossing physically remove the sugars, plaque and acid from the teeth.