Subtilosin A is a sactipeptide bacteriocin produced by Bacillus subtilis strain 168, containing intramolecular thioether bonds and a head-to-tail macrocyclic peptide bond. Macrocyclization is presumably catalyzed by AlbE and AlbF proteins encoded by the subtilosin A biosynthesis gene cluster. However, the underlying mechanism of macrocyclization remains uncertain as the tertiary structures of the proteins are undetermined. Here, we report the crystal structures of AlbE and AlbF homologs in Quasibacillus thermotolerans, wherein the subtilosin biosynthesis gene cluster is highly conserved. Structural analysis and pull-down assays revealed that AlbE and AlbF form heterodimeric complexes. Although the AlbEF complex shows structural similarity to M16B family metalloproteases, the substrate-binding chamber is shallower and more open than the other M16B family proteins. The chamber surface showed electrostatic complementarity to the precursor of subtilosin. Our findings provide insights into the role of AlbEF in metalloprotease catalysis and macrocyclic peptide bond formation.