Materials such as gutta-percha are used to seal the root canal and biocompatible composites are used to fill the space, ensuring that the tooth remains protected and functional.