Surgery can be used to remove cancer from the prostate and from nearby tissues into which the cancer has spread.