Prostate cancer is a type of cancer that occurs in the prostate, a walnut-sized gland located just below the bladder and in front of the rectum in men. The prostate plays a role in the production of semen, the fluid that carries sperm.