Pulp capping is a technique used in dental restorations to prevent the dental pulp from necrosis, after being exposed, or nearly exposed during a cavity preparation. When dental caries is removed from a tooth, all or most of the infected and softened enamel and dentin are removed. This can lead to the pulp of the tooth either being exposed or nearly exposed which causes pulpitis (inflammation). Pulpitis, in turn, can become irreversible, leading to pain and pulp necrosis, and necessitating either root canal treatment or extraction.