At the heart of every tooth lies the pulp, a tissue containing the nerve and blood vessels. When a deep cavity, a knock or a crack reaches it, the pulp becomes inflamed and then infected. It cannot heal by itself, and the pain, often sharp and throbbing, may be accompanied by an abscess.
Root canal treatment removes this pulp, cleans the root canals with fine instruments and antiseptic solutions, then fills them with a sealing material to stop bacteria returning. The tooth stays in place and continues to chew.
The treatment does not hurt in itself: the pain comes from the infection, not from the treatment. A tooth that has had a root canal becomes slightly more fragile, which is why a solid rebuild, sometimes a crown, is usually advised afterwards.