A root canal is performed to remove infected or damaged pulp from inside a tooth, preventing further infection and saving the natural tooth. The procedure involves removing the pulp, cleaning and disinfecting the canals, and filling them with a biocompatible material. The tooth is then restored with a filling or crown to protect it and restore function. Root canals are necessary when the pulp becomes inflamed or infected due to deep decay, repeated procedures, or injury.