RESUMEN
Innate behaviors consist of a succession of genetically-hardwired motor and physiological subprograms that can be coupled to drastic morphogenetic changes. How these integrative responses are orchestrated is not completely understood. Here, we provide insight into these mechanisms by studying pupariation, a multi-step innate behavior of Drosophila larvae that is critical for survival during metamorphosis. We find that the steroid-hormone ecdysone triggers parallel pupariation neuromotor and morphogenetic subprograms, which include the induction of the relaxin-peptide hormone, Dilp8, in the epidermis. Dilp8 acts on six Lgr3-positive thoracic interneurons to couple both subprograms in time and to instruct neuromotor subprogram switching during behavior. Our work reveals that interorgan feedback gates progression between subunits of an innate behavior and points to an ancestral neuromodulatory function of relaxin signaling.