Cavity refers to tooth decay, which occurs when specific types of bacteria produce acids and destroys the tooth enamel and its underlying layer which is the dentin. Cavity grows bigger and deeper over time and It is important to get it treated as soon as possible.