Tooth decay, also known as dental caries, occurs when harmful bacteria in the mouth produce acids that attack the tooth enamel. This can result in the formation of cavities, small holes in the teeth, and in more severe cases, the destruction of the entire tooth. If left untreated, tooth decay can lead to pain, infection, and even tooth loss.