Lactam rings are found in many biologically active natural products and pharmaceuticals, including important classes of antibiotics. Methods for the asymmetric synthesis of these molecules are therefore highly desirable, particularly through the selective functionalization of unreactive aliphatic C-H bonds. Here we show the development of a strategy for the asymmetric synthesis of β-, γ-, and δ-lactams via hemoprotein-catalysed intramolecular C-H amidation reaction with readily available dioxazolone reagents. Engineered myoglobin variants serve as excellent biocatalysts for this transformation yielding the desired lactam products in high yields, high enantioselectivity, and on preparative scale. Mechanistic and computational studies elucidate the nature of the C-H amination and enantiodetermining steps and provide insights into protein-mediated control of regioselectivity and stereoselectivity. Additionally, an alkaloid natural product and a drug molecule were synthesized chemoenzymatically in much fewer steps (7-8 vs. 11-12) than previously reported, further demonstrating the power of biosynthetic strategy for the preparation of complex bioactive molecules.