Sortase A-catalyzed peptide cyclization for the synthesis of macrocyclic peptides and glycopeptides.