Fruit production by an understorey tree, Miconia centrodesma, was monitored in treefall gaps and under intact canopy in a Costa Rican lowland rain forest. Trees in gaps displayed much less seasonality in fruit production than trees of intact forest sites. For example, ripe fruits were common on gap trees for a six month period (January-June) when few or no trees under intact canopy were in fruit. The frequent and aseasonal fruiting of gap trees demonstrates that they are not constrained by phenological cueing mechanisms; the influence of such cues is overridden by habitat. Trees in gaps also produced larger crops, had more extended fruiting episodes, and fruited more frequently than shaded conspecifics. This level of intraspecific variation in fruiting behaviour suggests that treefall gaps play an important role in determining the reproductive success of M. centrodesma. A substantial proportion of an individual's lifetime seed output may be produced during the brief period it occupies a gap. In addition, the large and continuous supply of fruits produced in gaps by M. centrodesma and other understorey plants, may mean that gaps function as ‘keystone habitats’ by providing resident frugivores with fruit during periods of general fruit scarcity.