Surgery may involve removing the uterus (hysterectomy) or other affected tissues to treat or prevent the spread of cancer.