During endodontic treatment, the damaged pulp tissue located within the tooth root is removed. After the resulting root canal space is meticulously cleaned, it is filled with a biocompatible filling material to ensure both the functional integrity and aesthetic appearance of the tooth.