The possible role of temperature as a component of natural selection generating the latitudinal clines in Gpdh allele frequencies in natural populations of Drosophila melanogaster was examined. Effects of rearing temperature (16 degrees, 22 degrees and 29 degrees) and of Gpdh allozymes (S and F) on larval developmental time and viability were measured. Eight genetic backgrounds from each of three populations (continents) were used to assess the generality of any effects. Analyses of variance indicated significant temperature effects and allozyme-by-genetic background interaction effects for both characters. Viability showed significant genetic background effects, as well as significant temperature-by-allozyme and temperature-by-allozyme-by-population interactions. In general, the S/S genotype was significantly lower in viability than the F/F and F/S genotypes at extreme temperatures (16 degrees and 29 degrees), with no significant differences at 22 degrees. However, each population had a slightly different pattern of viability associated with temperature, and only the Australian population showed a pattern that could contribute to the observed cline formation. Although the same two interactions were not significant for developmental time, examination of the means showed that the S/S genotype had a slightly faster rate of development at 16 degrees than the F/F genotype in all populations (by an average of 0.25 day or 1.1%). The low temperature effect on developmental time is consistent with the clines observed in nature, with the S allele increasing in frequency with higher latitudes. The results for both viability and developmental time are consistent with the interpretation of Gpdh as a minor polygene affecting physiological phenotypes, as indicated by previous work with adult flight metabolism. Finally, it is proposed that the temperature-dependent antagonistic effects of the allozymes on viability vs. developmental time and flight metabolism may be the underlying force giving rise to the worldwide polymorphism.