Root canal treatment is needed when the tooth’s pulp becomes inflamed or infected due to decay, repeated dental procedures, cracks, or injury.