Abstract. Our understanding of the evolution of genes of the major histocompatibility complex (MHC) is rapidly increasing, but there are still enigmatic questions remaining, particularly regarding the maintenance of high levels of MHC polymorphisms in small, isolated populations. Here, we analyze the genetic variation at eight microsatellite loci and sequence variation at exon 2 of the MHC class IIB (DAB) genes in two wild populations of the Trinidadian guppy, Poecilia reticulata. We compare the genetic variation of a small (N e ഠ 100) and relatively isolated upland population to that of its much larger (N e ഠ 2400) downstream counterpart. As predicted, microsatellite diversity in the upland population is significantly lower and highly differentiated from the population further downstream. Surprisingly, however, these guppy populations are not differentiated by MHC genetic variation and show very similar levels of allelic richness. Computer simulations indicate that the observed level of genetic variation can be maintained with overdominant selection acting at three DAB loci. The selection coefficients differ dramatically between the upland (s Ն 0.2) and lowland (s Յ 0.01) populations. Parasitological analysis on wild-caught fish shows that parasite load is significantly higher on upland than on lowland fish, which suggests that large differences in selection intensity may indeed exist between populations. Based on the infection intensity, a substantial proportion of the upland fish would have suffered direct or indirect fitness consequences as a result of their high parasite loads. Selection by parasites plays a particularly important role in the evolution of guppies in the upland habitat, which has resulted in high levels of MHC diversity being maintained in this population despite considerable genetic drift.Key words. Balancing selection, computer simulation, guppy, Gyrodactylus, major histocompatibility complex, parasite, random genetic drift. Genes of the major histocompatibility complex (MHC) provide among the best opportunities to study natural selection in wild populations (Bernatchez and Landry 2003). The genes of the MHC are among the most polymorphic loci in the vertebrate nuclear genome (Hughes 1999), and their function at a molecular level is well understood. The genes of the MHC encode cell surface proteins that bind nonself peptides, usually from pathogens. These peptides are presented to the T-cells, and this interaction elicits an immune response. The range of peptides an individual can successfully present to the immune system is predicted to be associated to an individual's immunocompetence, and hence, to its parasite resistance (Nei and Hughes 1991).Balancing selection appears to be important in maintaining high variability observed at many MHC genes (Hedrick 1999a), and many recent studies detected associations between parasite resistance and MHC heterozygosity (Penn et al. 2002) or particular MHC alleles (Hansson et al. 2004;Harf and Sommer 2005;Meyer-Lucht and Sommer 2005;Schad et al. 2005...