Environment in general and social signals in particular could alter development. In Caenorhabditis elegans, male pheromones hasten development of hermaphrodite larvae. We show that this involves acceleration of growth and both somatic and germline development during the last larval stage (L4). Larvae exposed to male pheromones spend more time in L3 and less in the quiescent period between L3 and L4. This behavioral alteration improves provision in early L4, likely allowing for faster development. Larvae must be exposed to male pheromones in late L3 for behavioral and developmental effects to occur. Latter portions of other larval stages also contain periods of heightened sensitivity to environmental signals. Behavior during the early part of the larval stages is biased toward exploration, whereas later the emphasis shifts to food consumption. We argue that this organization allows assessment of the environment to identify the most suitable patch of resources, followed by acquisition of sufficient nutrition and salient information for the developmental events in the next larval stage. Evidence from other species indicates that such coordination of behavior and development may be a general feature of larval development.