When the soft inner portion of a tooth (known as the pulp) becomes infected, it can produce intense pain. This can happen as a result of an untreated cavity or an injury to the tooth that allows bacteria inside. A root canal involves removing the diseased pulp, sterilizing the tooth, and sealing it with a rubber-like material and a crown.