Abstract. Pathogens can cause substantial mortality of amphibian eggs. If the timing of hatching is phenotypically plastic, embryos could escape from otherwise lethal infections by hatching early. We tested this with the arboreal eggs of red-eyed treefrogs, Agalychnis callidryas. A filamentous ascomycete (Dothideales: Phaeosphaeriaceae) was present on ϳ7% of egg clutches collected from a pond in the rain forest in Panama and, when present, killed 40% of the eggs, on average. Inoculation experiments confirmed that the fungus attacked and killed healthy embryos, establishing that this fungus is a pathogen of A. callidryas eggs. As predicted from life history theory, embryos hatched earlier from both naturally infected and inoculated clutches than from fungus-free control clutches. Within infected clutches, live embryos in contact with fungal hyphae hatched before those embryos not in contact with the fungus. Accelerated hatching allowed embryos to survive that otherwise would have been killed, and tadpoles hatched from infected clutches were themselves uninfected. Red-eyed treefrog embryos also hatch early if attacked by predators, apparently in response to vibratory cues. Because fungal infection provides no vibratory stimuli, embryos must respond to different cues in fungus-induced hatching than in predatorinduced hatching. The behavioral decision of when to hatch is complex and merits further investigation. Our study indicates that pathogens can influence the timing of life history transitions, as do other stage-specific risks.