If the rectal cancer is growing into nearby organs, a pelvic exenteration may be recommended. This is a major operation. The surgeon will remove the rectum as well as any nearby organs that the cancer has reached, such as the bladder, prostate (in men), or uterus (in women).
https://www.cancer.org/cancer/colon-rectal-cancer/treating/rectal-surgery.html

