An apicoectomy is a dental procedure that involves the surgical removal of the tip of a tooth's root and the surrounding infected tissue to preserve the tooth and prevent further infection. It is typically performed when root canal therapy alone is insufficient to resolve an infection or inflammation at the root tip.