Root canal treatment (also called endodontics) is needed when the blood or nerve supply of the tooth (known as the pulp) is infected through decay or injury.