If you don’t treat a cavity right away, the decay can spread and eventually reach the pulp, the soft inner portion of the tooth. When that is infected, a root canal is needed to clean out the pulp, sanitize the tooth, and seal it with a restoration to prevent further problems. A root canal will end your toothache and save your tooth from extraction.