Congenital diaphragmatic hernia (CDH) is a severe birth defect. Wt1-null mouse embryos develop CDH but the mechanisms regulated by WT1 are unknown. We have generated a murine model with conditional deletion of WT1 in the lateral plate mesoderm, using the G2 enhancer of the Gata4 gene as a driver. 80% of G2-Gata4(Cre);Wt1(fl/fl) embryos developed typical Bochdalek-type CDH. We show that the posthepatic mesenchymal plate coelomic epithelium gives rise to a mesenchyme that populates the pleuroperitoneal folds isolating the pleural cavities before the migration of the somitic myoblasts. This process fails when Wt1 is deleted from this area. Mutant embryos show Raldh2 downregulation in the lateral mesoderm, but not in the intermediate mesoderm. The mutant phenotype was partially rescued by retinoic acid treatment of the pregnant females. Replacement of intermediate by lateral mesoderm recapitulates the evolutionary origin of the diaphragm in mammals. CDH might thus be viewed as an evolutionary atavism.