The condition is typically caused by a failure in the migration of neural crest cells during embryonic development. These cells are precursors to the ganglion cells in the enteric nervous system. The genetic basis often involves mutations in the RET proto-oncogene and other related genes.