Endodontics is a branch of dentistry that deals with diseases and injuries of the dental pulp (nerves, blood vessels, and connective tissue) inside the tooth, and the tissues surrounding the root. Endodontic treatments generally involve the diagnosis and treatment of infections and inflammations occurring within the tooth's root canal system. These treatments are applied when the pulp is damaged due to decay, infection, inflammation, or trauma (such as a crack or fracture). These procedures, often known as 'root canal treatment,' involve removing the diseased pulp, cleaning and shaping the root canal system, and sealing it hermetically. The primary goal of endodontics is to treat an infected or damaged tooth, preserving its natural structure, health, and functionality, and, if possible, saving it from extraction.