A urostomy is a surgical procedure that creates a stoma (artificial opening) for the urinary system. This is usually necessary when the bladder is either not functioning properly or has been removed due to conditions such as bladder cancer, severe trauma, or congenital defects. The stoma allows urine to bypass the bladder and exit the body through the abdominal wall.