Inside each tooth is soft tissue called the pulp, which contains nerves and blood vessels. Deep decay, a crack or an injury can cause the pulp to become inflamed or infected, which may lead to pain, swelling or an abscess.
During a root canal, the damaged pulp is removed, the inside of the tooth is cleaned and shaped, and the canals are filled and sealed. Back teeth usually need a crown afterwards for protection.