In Drosophila, each of the three larval instars ends with a molt, triggered by release of steroid molting hormone ecdysone from the prothoracic gland (PG). Because all growth occurs during the larval stages, final body size depends on both the larval growth rate and the duration of each larval stage, which in turn might be regulated by the timing of ecdysone release.Here, we show that the expression of activated Ras, PI3 kinase (PI3K), or Raf specifically in the PG reduces body size, whereas activated Ras or PI3K, but not Raf, increases PG cell size. In contrast, expression of either dominant-negative (dn) Ras, Raf, or PI3K increases body size and prolongs the larval stages, leading to delayed pupariation, whereas expression of dn-PI3K, but not of dn-Raf or dn-Ras, reduces PG cell size. To test the possibility that altered ecdysone release is responsible for these phenotypes, we measured larval ecdysone levels indirectly, via the transcriptional activation of two ecdysone targets, E74A and E74B. We found that the activation of Ras within the PG induces precocious ecdysone release, whereas expression of either dn-PI3K or dn-Raf in the PG greatly attenuates the [ecdysone] increase that causes growth cessation and pupariation onset.We conclude that Ras activity in the PG regulates body size and the duration of each larval stage by regulating ecdysone release. We also suggest that ecdysone release is regulated in two ways: a PI3K-dependent growth-promoting effect on PG cells, and a Raf-dependent step that may involve the transcriptional regulation of ecdysone biosynthetic genes.