A urologist specializes in diagnosing and treating conditions related to the urinary tract and male reproductive system.