The cause of congenital megaloureter is thought to be aperistalsis of the distal ureter, leading to dilatation. The defect in peristalsis may be due to faulty development of muscle layers of ureter, that is, there is a functional, not a mechanical cause of obstruction.