Fungal type I polyketides (PKs) are synthesized by PK synthases (PKSs) and include well known secondary metabolites such as the anticholesterol drug lovastatin and the potent natural carcinogen aflatoxin. Other type I PKs are known to be virulence factors for some plant pathogens and pigments such as melanin. In this study, a phylogenomic approach was used to investigate the origin and diversity of fungal genes encoding putative PKSs that are predicted to synthesize type I PKs. The resulting genealogy, constructed by using the highly conserved PKS ketosynthase (