An appendectomy is a surgical procedure to remove the appendix, typically performed to treat appendicitis, an inflammation of the appendix. Appendicitis is a common surgical emergency, and if left untreated, the appendix can rupture, leading to serious complications. The surgery can be done either as an open operation or laparoscopically.