Members of the cytochromes P450 superfamily (P450s) catalyze a huge variety of oxidation reactions in microbes and higher organisms. Most P450 families are highly divergent, but in contrast the cytochrome P450 14α-sterol demethylase (CYP51) family is one of the most ancient and conserved, catalyzing sterol 14α-demethylase reactions required for essential sterol synthesis across the fungal, animal, and plant kingdoms. Oats (Avena spp.) produce antimicrobial compounds, avenacins, that provide protection against disease. Avenacins are synthesized from the simple triterpene, β-amyrin. Previously we identified a gene encoding a member of the CYP51 family of cytochromes P450, AsCyp51H10 (also known as Saponin-deficient 2, Sad2), that is required for avenacin synthesis in a forward screen for avenacin-deficient oat mutants. sad2 mutants accumulate β-amyrin, suggesting that they are blocked early in the pathway. Here, using a transient plant expression system, we show that AsCYP51H10 is a multifunctional P450 capable of modifying both the C and D rings of the pentacyclic triterpene scaffold to give 12,13β-epoxy-3β,16β-dihydroxy-oleanane (12,13β-epoxy-16β-hydroxy-β-amyrin). Molecular modeling and docking experiments indicate that C16 hydroxylation is likely to precede C12,13 epoxidation. Our computational modeling, in combination with analysis of a suite of sad2 mutants, provides insights into the unusual catalytic behavior of AsCYP51H10 and its active site mutants. Fungal bioassays show that the C12,13 epoxy group is an important determinant of antifungal activity. Accordingly, the oat AsCYP51H10 enzyme has been recruited from primary metabolism and has acquired a different function compared to other characterized members of the plant CYP51 family-as a multifunctional stereo-and regio-specific hydroxylase in plant specialized metabolism.