We identified a mechanism that regulates both Drosophila mesoderm internalization and body axis extension. We showed that EGFR signaling, whose earliest known embryonic role was patterning the central nervous system, establishes a DV pattern of graded levels of cell adhesion.