Prostate surgery treats diseases that affect the prostate gland. This includes prostate cancer and other noncancerous conditions. There are different types, depending on the specific condition.