Genes of the major histocompatibility complex (MHC) have a crucial role in the immune response of vertebrates, alter the individual odour and are involved in shaping mating preferences. Pathogen-mediated selection, sexual selection and maternal-fetal interactions have been proposed as the main drivers of frequently observed high levels of polymorphism in functionally important parts of the MHC. Bats constitute the second largest mammalian order and have recently emerged as important vectors of infectious diseases. In addition, Chiroptera are interesting study subjects in evolutionary ecology in the context of olfactory communication, mate choice and associated fitness benefits. Thus, it is surprising that they belong to the least studied mammalian taxa in terms of their MHC diversity. In this study, we investigated the variability in the functionally important MHC class II gene DRB, evidence for selection and population structure in the group-living lesser bulldog bat, Noctilio albiventris, in Panama. We found a single expressed, polymorphic Noal-DRB gene. The substitution pattern of the nucleotide sequences of the 18 detected alleles provided evidence for positive selection acting above the evolutionary history of the species in shaping MHC diversity. Roosting colonies were not genetically differentiated but females showed lower levels of heterozygosity than males, which might be a sign that the sexes differ in the selection pressures acting on the MHC. This study provides the prerequisites for further investigations of the role of the individual MHC constitution in parasite resistance, olfactory communication and mate choice in N. albiventris and other bats.