Prostatectomy is a surgical procedure for the partial or complete removal of the prostate gland. It is commonly used to treat prostate cancer and benign prostatic hyperplasia (BPH). The procedure can be performed using various techniques, including open surgery, laparoscopic surgery, and robotic-assisted surgery.