An apicoectomy is a minor surgical procedure performed to treat persistent infections or inflammation in the root tip of a tooth that has undergone root canal therapy. The procedure involves removing the tip of the root and any infected tissue, followed by sealing the root end to prevent further issues. Apicoectomy is often a last resort to save a tooth from extraction.