A urologist is a medical specialist who treats conditions related to the urinary tract, such as an enlarged prostate.