An appendectomy is a surgical procedure aimed at removing the inflamed appendix, a small pouch attached to the large intestine. It is most commonly performed in cases of appendicitis, where the appendix becomes infected or inflamed, leading to symptoms such as abdominal pain, nausea, and fever. Without prompt treatment, appendicitis can progress to more serious complications, such as rupture, leading to potentially life-threatening conditions like peritonitis.