protects inner layers of the tooth from decay and damage caused by bacteria and acids produced by plaque