Understanding the structure of the major histocompatibility complex, especially the number and frequency of alleles, loci and haplotypes, is crucial for efficient investigation of the way in which the MHC influences susceptibility to disease. Nematode infection is one of the most important diseases suffered by sheep, and the class II region has been repeatedly associated with differences in susceptibility and resistance to infection. Texel sheep are widely used in many different countries and are relatively resistant to infection. This study determined the number and frequency of MHC class II genes in a small flock of Texel sheep. There were 18 alleles at DRB1, 9 alleles at DQA1, 13 alleles at DQB1, 8 alleles at DQA2 and 16 alleles at DQB2. Several haplotypes had no detectable gene products at DQA1, DQB1 or DQB2, and these were defined as null alleles. Despite the large numbers of alleles, there were only 21 distinct haplotypes in the population. The relatively small number of observed haplotypes will simplify finding disease associations because common haplotypes provide more statistical power but complicate the discrimination of causative mutations from linked marker loci.Electronic supplementary materialThe online version of this article (doi:10.1007/s00251-016-0962-6) contains supplementary material, which is available to authorized users.