Tooth decay is damage that occurs when germs (bacteria) in your mouth make acids that eat away at a tooth. It can lead to a hole in the tooth, called a cavity. If not treated, tooth decay can cause pain, infection, and tooth loss. A tooth has three layers, the enamel, and dentin, and the pulp. The more layers that are affected by decay, the worse the damage.