The urethra is a tube that connects the bladder to the outside of the body, allowing for the excretion of urine. In males, it also serves as a passage for semen during ejaculation. The length and function of the urethra differ between males and females; it is shorter in females, which can contribute to a higher risk of urinary tract infections. Overall, the urethra plays a crucial role in the urinary and reproductive systems.