The marine alkaloid chlorizidine A contains chlorinated pyrroloisoindolone and pyrrolizine rings that are rare chemical features in bacterial natural products. Herein, we report the biosynthetic logic of their construction in Streptomyces sp. CNH-287 based on the identification of the chlorizidine A biosynthetic gene cluster. Using whole pathway heterologous expression and genetic manipulations, we show that chlorizidine A is assembled by a polyketide synthase that uniquely incorporates a fatty acid synthase-derived dichloropyrrolyl extender unit into the pyrroloisoindolone enzymatic product. We further provide the first biochemical characterization of a flavoenzyme associated with the oxidative formation of chlorizidine A's distinctive pyrrolizine ring. This work illuminates new enzymatic assembly line processes leading to rare nitrogen-containing rings in nature.