SUMMARYTo elucidate the role of juvenile hormone (JH) in metamorphosis of Drosophila melanogaster, the corpora allata cells, which produce JH, were killed using the cell death gene grim. These allatectomized (CAX) larvae were smaller at pupariation and died at head eversion. They showed premature ecdysone receptor B1 (EcR-B1) in the photoreceptors and in the optic lobe, downregulation of proliferation in the optic lobe, and separation of R7 from R8 in the medulla during the prepupal period. All of these effects of allatectomy were reversed by feeding third instar larvae on a diet containing the JH mimic (JHM) pyriproxifen or by application of JH III or JHM at the onset of wandering. Eye and optic lobe development in the Methoprene-tolerant (Met)-null mutant mimicked that of CAX prepupae, but the mutant formed viable adults, which had marked abnormalities in the organization of their optic lobe neuropils. Feeding Met 27 larvae on the JHM diet did not rescue the premature EcR-B1 expression or the downregulation of proliferation but did partially rescue the premature separation of R7, suggesting that other pathways besides Met might be involved in mediating the response to JH. Selective expression of Met RNAi in the photoreceptors caused their premature expression of EcR-B1 and the separation of R7 and R8, but driving Met RNAi in lamina neurons led only to the precocious appearance of EcR-B1 in the lamina. Thus, the lack of JH and its receptor Met causes a heterochronic shift in the development of the visual system that is likely to result from some cells 'misinterpreting' the ecdysteroid peaks that drive metamorphosis.