Root canal treatment is needed when the dental pulp is infected, inflamed or damaged due to deep cavities, dental fractures or injuries.