Different lineages of fungi produce distinct classes of ergot alkaloids. Lysergic acid-derived ergot alkaloids produced by fungi in the Clavicipitaceae are particularly important in agriculture and medicine. The pathway to lysergic acid is partly elucidated, but the gene encoding the enzyme that oxidizes the intermediate agroclavine is unknown. We investigated two candidate agroclavine oxidase genes from the fungus Epichloë festucae var. lolii ؋ Epichloë typhina isolate Lp1 (henceforth referred to as Epichloë sp. Lp1), which produces lysergic acid-derived ergot alkaloids. Candidate genes easH and cloA were expressed in a mutant strain of the mold Aspergillus fumigatus, which typically produces a subclass of ergot alkaloids not derived from agroclavine or lysergic acid. Candidate genes were coexpressed with the Epichloë sp. Lp1 allele of easA, which encodes an enzyme that catalyzed the synthesis of agroclavine from an A. fumigatus intermediate; the agroclavine then served as the substrate for the candidate agroclavine oxidases. Strains expressing easA and cloA from Epichloë sp. Lp1 produced lysergic acid from agroclavine, a process requiring a cumulative six-electron oxidation and a double-bond isomerization. Strains that accumulated excess agroclavine (as a result of Epichloë sp. Lp1 easA expression in the absence of cloA) metabolized it into two novel ergot alkaloids for which provisional structures were proposed on the basis of mass spectra and precursor feeding studies. Our data indicate that CloA catalyzes multiple reactions to produce lysergic acid from agroclavine and that combining genes from different ergot alkaloid pathways provides an effective strategy to engineer important pathway molecules and novel ergot alkaloids.