A notable characteristic of fungal genomes is that genes involved in successive steps of a metabolic pathway are often physically linked or clustered. To investigate how such clusters of functionally related genes are assembled and maintained, we examined the evolution of gene sequences and order in the galactose utilization (GAL) pathway in whole-genome data from 80 diverse fungi. We found that GAL gene clusters originated independently and by different mechanisms in three unrelated yeast lineages. Specifically, the GAL cluster found in Saccharomyces and Candida yeasts originated through the relocation of native unclustered genes, whereas the GAL cluster of Schizosaccharomyces yeasts was acquired through horizontal gene transfer from a Candida yeast. In contrast, the GAL cluster of Cryptococcus yeasts was assembled independently from the Saccharomyces/Candida and Schizosaccharomyces GAL clusters and coexists in the Cryptococcus genome with unclustered GAL paralogs. These independently evolved GAL clusters represent a striking example of analogy at the genomic level. We also found that species with GAL clusters exhibited significantly higher rates of GAL pathway loss than species with unclustered GAL genes. These results suggest that clustering of metabolic genes might facilitate fungal adaptation to changing environments both through the acquisition and loss of metabolic capacities. F ungal genes involved in successive steps of a pathway are frequently physically clustered (1-12). Evolutionary analysis of several different fungal gene clusters has shown that they have originated through different mechanisms (13-16). For example, the DAL cluster for allantoin utilization in Saccharomyces cerevisiae and close relatives originated through adaptive gene relocation (13), whereas a nitrate assimilation cluster in Trichoderma originated through horizontal gene transfer (14). However, it is unclear how these mechanisms shape the assembly of gene clusters, or how the evolutionary trajectories differ between species containing clusters and species in which the genes in a pathway are scattered across the genome.To better understand the origins and maintenance of gene clusters over a large evolutionary timescale and a range of ecological conditions, we investigated the evolution of the Leloir galactose utilization (GAL) pathway in fungi. The detailed knowledge on GAL pathway function in S. cerevisiae (15, 16), and the abundance of genomic data from a wide diversity of fungal species (17), make it an excellent model pathway to address these questions. Furthermore, the relative galactose content varies substantially among different plant substrata (from hundreds of mg/g legume seeds and algal mats to less than 1 mg/g in some fruits) (18-21), suggesting that the natural substrates of fungi have likely provided ample opportunity for populations to evolve niche-dependent adaptations for galactose utilization.The protein products of three GAL genes (GAL1, GAL7, and GAL10) are involved in four enzymatic steps (22). In the first s...