Endodontic treatment, also known as root canal therapy, is used to treat dental infections and prevent tooth loss. It’s usually pain-free and takes one to two weeks to recover.