A root canal treatment is a dental procedure used to treat an infected or damaged tooth. The treatment involves removing the infected or damaged pulp from the inside of the tooth and replacing it with a filling. You might need a root canal if you have a toothache, sensitivity to hot or cold, swelling or tenderness in the gums, or a visible crack or chip in a tooth.