The biotinyl/lipoyl attachment domain is a protein segment that binds biotin or lipoic acid, which are essential cofactors for metabolic enzyme complexes. These domains, with a characteristic beta-barrel structure, function as mobile "swinging arms" to carry reaction intermediates between enzyme active sites. Recognition and attachment are mediated by specific enzymes such as biotinylating enzymes (e.g., BirA) and lipoylating enzymes (e.g., LplA). The domain is present in biotin-dependent carboxylases/decarboxylases, the dihydrolipoyl acyltransferase component (E2) of 2-oxo acid dehydrogenases, and the H-protein of the glycine cleavage system (GCS). It transports CO2, acyl, or methylamine, respectively, between components of the complex/protein via a biotinyl or lipoyl group, which is covalently attached to a highly conserved lysine residue.