A proctectomy is a surgical procedure that involves the removal of the rectum. This operation is commonly performed to treat various types of rectal cancers and some severe cases of inflammatory bowel disease. The procedure can be categorized into different types, such as low anterior resection and abdominoperineal resection, depending on the location and extent of the cancer.