An appendectomy is a surgical procedure to remove the appendix, a small, tube-shaped sac attached to the large intestine. This procedure is typically performed to treat appendicitis, an inflammation of the appendix that can lead to severe complications if not addressed promptly.