The prostate is a small, walnut-shaped gland located between the bladder and the rectum in men. It produces a fluid that makes up part of the semen and helps to transport sperm during ejaculation. The prostate can be affected by various conditions such as benign prostatic hyperplasia (BPH), prostatitis, and prostate cancer.