Baeyer-Villiger monooxygenases (BVMOs), mostly flavoproteins, were shown to be powerful biocatalysts for synthetic organic chemistry applications and were also suggested to play key roles for the biosyntheses of various natural products. Here we present the three-dimensional structure of MtmOIV, a 56 kDa homodimeric FAD- and NADPH-dependent monooxygenase, which catalyzes the key frame-modifying step of the mithramycin biosynthetic pathway and currently the only BVMO proven to react with its natural substrate via a Baeyer-Villiger reaction. MtmOIV's structure was determined by X-ray crystallography using molecular replacement to a resolution of 2.9 A. MtmOIV cleaves a C-C bond, essential for the conversion of the biologically inactive precursor, premithramycin B, into the active drug mithramycin. The MtmOIV structure combined with substrate docking calculations and site-directed mutagenesis experiments identifies several residues that participate in cofactor and substrate binding. Future experimentation aimed at broadening the substrate specificity of the enzyme could facilitate the generation of chemically diverse mithramycin analogues through combinatorial biosynthesis.