Endodontic (root canal) treatment is performed to remove infected or inflamed pulp inside the tooth. The canals are cleaned, disinfected, and sealed to prevent reinfection. This procedure helps save natural teeth and eliminates pain without the need for extraction.