Indolizidine alkaloids such as anticancer drugs vinblastine and vincristine are exceptionally attractive due to their widespread occurrence, prominent bioactivity, complex structure, and sophisticated involvement in the chemical defense for the producing organisms. However, the versatility of the indolizidine alkaloid biosynthesis remains incompletely addressed since the knowledge about such biosynthetic machineries is only limited to several representatives. Herein, we describe the biosynthetic gene cluster (BGC) for the biosynthesis of curvulamine, a skeletally unprecedented antibacterial indolizidine alkaloid from Curvularia sp. IFB-Z10. The molecular architecture of curvulamine results from the functional collaboration of a highly reducing polyketide synthase (CuaA), a pyridoxal-5′-phosphate (PLP)-dependent aminotransferase (CuaB), an NADPH-dependent dehydrogenase (CuaC), and a FAD-dependent monooxygenase (CuaD), with its transportation and abundance regulated by a major facilitator superfamily permease (CuaE) and a Zn(II)Cys6 transcription factor (CuaF), respectively. In contrast to expectations, CuaB is bifunctional and capable of catalyzing the Claisen condensation to form a new C–C bond and the α-hydroxylation of the alanine moiety in exposure to dioxygen. Inspired and guided by the distinct function of CuaB, our genome mining effort discovers bipolamines A−I (bipolamine G is more antibacterial than curvulamine), which represent a collection of previously undescribed polyketide alkaloids from a silent BGC in Bipolaris maydis ATCC48331. The work provides insight into nature’s arsenal for the indolizidine-coined skeletal formation and adds evidence in support of the functional versatility of PLP-dependent enzymes in fungi.