Caffeine has been found to occur as a fungal metabolite and to be the principal alkaloid in sclerotia of Claviceps sorghicola, a Japanese ergot pathogen of Sorghum spp.