When restoring an endodontically treated tooth, the post

retains the core.

needs to end within 1mm of the apex.

reinforces the root.