Cavities are a common dental problem caused by tooth decay. When bacteria in the mouth feed on sugars from food and drinks, they produce acids that attack the tooth enamel. Over time, this acid erosion can create holes in the teeth, known as cavities.
Dentists fill cavities to prevent further decay and restore the tooth's structure. The filling material, typically a composite resin or amalgam, is placed into the cavity and hardened to seal the hole and protect the tooth from further damage. Filling cavities can help prevent pain, infection, and tooth loss.