During weeks 4-7 of development, the urogenital sinus divides into the urogenital sinus anteriorly and the anal canal posteriorly by the urorectal septum. The bladder develops from the upper part of the urogenital sinus and is connected to the allantois. The ureters initially develop as outgrowths from the mesonephric ducts and later enter the bladder separately, contributing to formation of the trigone. Malformations can occur if development of the bladder or attachment of the ureters is abnormal, such as urachal fistulas, urachal sinuses, urachal cysts, or abnormal ureter attachment.