An appendectomy is a common surgical procedure to remove the appendix, a small tube-shaped sac attached to the large intestine. An appendectomy is usually performed urgently when the appendix becomes inflamed and infected, a condition called appendicitis.