The urethra is a tube that connects the bladder to the external environment, allowing for the excretion of urine from the body. In males, it also serves as a passage for semen during ejaculation. Its primary functions are to facilitate the elimination of waste and to play a role in reproductive processes in males. The urethra varies in length and structure between males and females, with the male urethra being longer and more complex.