Assembly of pili in Gram-positive bacteria and their attachment to the cell wall envelope are mediated by sortases. In Bacillus cereus and its close relative Bacillus anthracis, the major pilin protein BcpA is cleaved between the threonine and the glycine of its C-terminal LPXTG motif sorting signal by the pilin-specific sortase D. The resulting acyl enzyme intermediate is relieved by the nucleophilic attack of the side-chain amino group of lysine within the YPKN motif of another BcpA subunit. Cell wall anchoring of assembled BcpA pili requires sortase A, which also cleaves the LPXTG sorting signal of BcpA between its threonine and glycine residues. We show here that sortases A and D require only the C-terminal sorting signal of BcpA for substrate cleavage. Unlike sortase D, which accepts the YPKN motif as a nucleophile, sortase A forms an amide bond between the BcpA C-terminal carboxyl group of threonine and the sidechain amino group of diaminopimelic acid within the cell wall peptidoglycan of bacilli. These results represent the first demonstration of a cell wall anchor structure for pili, which are deposited by sortase A into the envelope of many different microbes.Many Gram-positive bacteria use pili, protein fibers that project from microbial surfaces, to adhere to and invade host tissues or form biofilms (1). Gram-positive pili are assembled from pilin subunits that are synthesized as precursors with N-terminal signal peptides and C-terminal sorting signals in the bacterial cytoplasm (P1) (2). The signal peptide is cleaved and precursors translocated through the bacterial membrane by the Sec machinery, thereby generating the P2 precursor (3, 4). Assembly of pili involves the polymerization of the major pilin protein, a reaction that is catalyzed by pilinspecific sortase (2, 5), designated sortase D in pathogenic Bacillus sp. (6). Pilin-specific sortases perform a transpeptidation reaction, whereby the C-terminal LPXTG motif sorting signal of the major pilin protein, BcpA in bacilli, is cleaved between the threonine and the glycine residue (4). Intermediary product of this reaction is a thioester-linked acyl-enzyme between the active site cysteine residue of sortase and the carboxyl group of threonine (7,8). Nucleophilic attack of the ⑀-amino group of lysine within the YPKN pilin motif of another BcpA subunit resolves the sortase D intermediate and generates the amide bond between the C-terminal carboxyl group of threonine and the side-chain amino group of lysine of adjacent BcpA subunits (4). Conservation of pilin-specific sortase, the YPKN motif, and C-terminal sorting signal in the major subunit of pilin proteins suggests that pilus assembly occurs by a universal mechanism in Gram-positive bacteria (2).Pili are anchored to the cell wall envelope of Gram-positive bacteria by a mechanism that requires sortase A (6, 9 -11). Sortase A is otherwise known to cut the C-terminal LPXTG sorting signal of surface proteins and immobilize anchored products in the cell wall envelope of 13). In Staphylococcus aureus, s...