Ureter carries urine from the kidney to urinary bladder. The function of the urethra is to carry urine from the urinary bladder to outside the body. In males, when the penis is erect, the flow of urine is blocked from the urethra, allowing only semen to be ejaculated.