A root canal is necessary when the pulp inside the tooth, which contains nerves and blood vessels, becomes infected or damaged. This can be due to deep decay, repeated dental procedures on the tooth, or a crack or chip in the tooth.