Endodontics is a branch of dentistry that deals with root canal treatment of diseased teeth and repairing teeth affected by caries.