An appendectomy is surgery to remove the appendix when it is infected. This condition is called appendicitis. Appendectomy is a common emergency surgery. The appendix is a thin pouch that is attached to the large intestine. It sits in the lower right part of your belly.