ROBO2 signaling in lung development regulates SOX2/SOX9 balance, branching morphogenesis and is dysregulated in nitrofen-induced congenital diaphragmatic hernia. Here, SOX9 is linked to congenital diaphragmatic hernia.