The prostate is a gland in the male reproductive system located just below the bladder and in front of the rectum. It surrounds the urethra, the tube through which urine and semen exit the body. The primary function of the prostate is to produce seminal fluid, which nourishes and transports sperm.