An adult moth sheds its pupal skin only during a specific period of the day. The brain is necessary for the synchronization of this behavior with the environmental photoperiod. This function is fully preserved when all the brain's nervous connections are severed or when a "loose" brain is transplanted into the tip of the abdomen. By appropriate experiments it was possible to show that the entire mechanism is brain-centered. The components include a photoreceptor mechanism, a clock, and a neuroendocrine output. The clock-controlled release of the hormone acts on the central nervous system to trigger a species-specific behavior pattern which culminates in ecdysis.