2-Hydroxy-4H-quinolizin-4-one scaffolds were enzymatically synthesized by integrating three enzymes including phenylacetate-CoA ligase (PcPCL) from an endophytic fungus Penicillium chrysogenum MT-12, malonyl-CoA synthase (AtMatB) from Arabidopsis thaliana, and a type III polyketide synthase (HsPKS3) from Chinese club moss Huperzia serrata. The findings paved the way to produce these kinds of structurally interesting alkaloids by engineered microorganisms. This journal is © The Royal Society of Chemistry.