A root canal treats infection inside the tooth (the pulp). The procedure involves removing the infected tissue, thoroughly cleaning and disinfecting the canals, and sealing the tooth to prevent reinfection.