The synthesis of cyclic peptides and glycopeptides by native chemical ligation using in situ derived thioesters is described.