Endodontics (from the Greek roots endo- "inside" and odont- "tooth") is the dental specialty concerned with the study and treatment of the dental pulp.

In clinical terms, endodontics involves either preserving part, or all of the dental pulp in health, or removing all of the pulp in irreversible disease. This includes teeth with irreversibly inflamed and infected pulpal tissue. Not only does endodontics involve treatment when a dental pulp is present, but also includes preserving teeth which have failed to respond to non-surgical endodontic treatment, or for teeth that have developed new lesions, e.g., when root canal re-treatment is required, or periradicular surgery.

More Info: en.wikipedia.org